lkml.org 
[lkml]   [2001]   [May]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectAPM idle behaviour
  Hi, all. I've been staring at the APM code and trying to figure out
some things related to idle behaviour. I'm staring at the code for
2.2.19.

My first question is why does cpu_idle() wait for 0.33 seconds of
idling before calling acpi_idle() (apm_cpu_idle() in fact)? Why not
wait less time, or more?

Another question is why do PS/2 mouse events break out of
apm_cpu_idle() whereas keyboard events do not? I've hacked
apm_cpu_idle() to increment a global counter, and then I can run a
programme to show the value of this counter. I can type in commands
and even switched between windows using a keyboard shortcut, and the
global counter doesn't increment. As soon as I move the mouse or press
a mouse key, the counter will increment.

Regards,

Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:52    [W:0.030 / U:2.908 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site