On (06/15/10 18:23), Sergey Senozhatsky wrote: >.... > delta = ktime_sub(now, ts->idle_entrytime); > ts->idle_sleeptime = ktime_add(ts->idle_sleeptime, delta); > if (nr_iowait_cpu(cpu) > 0) > ts->iowait_sleeptime = ktime_add(ts->iowait_sleeptime, delta); > put_cpu(); > ts->idle_entrytime = now; > + ts->idle_active = 0; ^^^^^^ This part is wrong. Sorry. > } > > if (last_update_time) > *last_update_time = ktime_to_us(now); > > }
Attachment:
pgpiqwqMrb75t.pgp
Description: PGP signature
_______________________________________________ linux-pm mailing list linux-pm@xxxxxxxxxxxxxxxxxxxxxxxxxx https://lists.linux-foundation.org/mailman/listinfo/linux-pm