From: James S. <jsi...@us...> - 2002-07-10 18:08:34
|
Update of /cvsroot/linuxconsole/ruby/linux/arch/i386/kernel In directory usw-pr-cvs1:/tmp/cvs-serv10580/linux/arch/i386/kernel Modified Files: apm.c Log Message: Syned to 2.5.25 Index: apm.c =================================================================== RCS file: /cvsroot/linuxconsole/ruby/linux/arch/i386/kernel/apm.c,v retrieving revision 1.8 retrieving revision 1.9 diff -u -d -r1.8 -r1.9 --- apm.c 22 Jun 2002 17:50:58 -0000 1.8 +++ apm.c 10 Jul 2002 18:08:02 -0000 1.9 @@ -814,16 +814,16 @@ if (jiffies_since_last_check > IDLE_CALC_LIMIT) { use_apm_idle = 0; last_jiffies = jiffies; - last_stime = current->times.tms_stime; + last_stime = current->stime; } else if (jiffies_since_last_check > idle_period) { unsigned int idle_percentage; - idle_percentage = current->times.tms_stime - last_stime; + idle_percentage = current->stime - last_stime; idle_percentage *= 100; idle_percentage /= jiffies_since_last_check; use_apm_idle = (idle_percentage > idle_threshold); last_jiffies = jiffies; - last_stime = current->times.tms_stime; + last_stime = current->stime; } bucket = IDLE_LEAKY_MAX; |