call gdev_poll when kernel mode is on and sched is disabled
Initialize max as 0

Since no initialization, max value is undefined.