A battery powered computer system determines when the system is not in use
by monitoring various events associated with the operation of the system.
The system preferably monitors the number of cache read misses and write
operations, i.e., the cache hit rate, and reduces the system clock
frequency when the cache hit rate rises above a certain level. When the
cache hit rate is above a certain level, then it can be assumed that the
processor is executing a tight loop, such as when the processor is
waiting for a key to be pressed and then the frequency can be reduced
without affecting system performance. Alternatively, the apparatus
monitors the occurrence of memory page misses, I/O write cycles or other
events to determine the level of activity of the computer system.