Re: idle state




bob@xxxxxxxxxxxxxx wrote:
randyhyde@xxxxxxxxxxxxx wrote:
mike7411@xxxxxxxxx wrote:
I'm trying to understand what occurs at a processor level when an OS
such as Windows is idle. Is there an assembler statement tells the
processor to take a break until an interrupt occurs or something
similar? I couldn't find it.

Such instructions do exist, but they generally get used in embedded
systems not in OSes such as Windows. If nothing else is going on, the
OS generally turns down the clock frequency, reduces power as much as
possible, and spins.
Cheers,
Randy Hyde

Interesting. What instruction might it use to lower the clock
frequency? OUT? Also, how low might the clock go?

It isn't so much an instruction as it is writing data to an external
(to the CPU) hardware device (e.g., clock controller). You could use an
OUT or a MOV instruction, for example, to send this data to that
device. As far as how slow the CPU can be clocked, that's a function of
the CPU. Early (and embedded CPUs) had a static design and the clock
could be stopped completely. IIRC, the x86 chips generally have a
dynamic design and must run at some minimal clock frequency in order to
keep things "refreshed" on the chip. I do not know what this minimal
frequency is (and, indeed, it probably varies by chip). Of course, if
you completely stop the clock, no computation would take place anyway
and it would take some sort of external event to tell the clock
controller to restart the CPU, so you wouldn't want to do that anyway.
Cheers,
Randy Hyde

.



Relevant Pages

  • Re: Mixed clocked/combinatorial coding styles (another thread)
    ... I don't consider my SPI code as finished but I've seen what ... of the SPI clock at the master where it *should* be for a normal SPI system. ... But does this choice force me to, for example, clock the CPU ... If that's not your case, then you've got a wimpy CPU, but in that situation you wouldn't have a clock divider, and the data handling would be done differently. ...
    (comp.lang.vhdl)
  • Re: Stolen and degraded time and schedulers
    ... If you want accurate time accounting, don't use the TSC. ... The adjustments that I spoke of above are working regardless of ntp .. ... as does interrupt latency since the clock is essentially ... CPU does work as a timebase, then using the same warping mechanism would ...
    (Linux-Kernel)
  • Re: IIGS Acceleration Idea
    ... from the ram refresh to the slot timing to the mainboard and slot RAM addressing. ... To speed up the IIgs you'd have to implement a new CYA chip to produce all the timing and address signals for the main board plus the faster clock for the IIgs. ... Replace the CPU with a high speed CPU and simple 20x clock circuit. ... you will have to redesign Apple //e or Apple IIgs motherboard. ...
    (comp.sys.apple2)
  • [PATCH] perf_counter: Prevent oopses from per-cpu software counters
    ... context switches or cpu migrations only makes ... This fixes the problem by disallowing the use of the task clock, ... The only software counter that can be used as a per-cpu counter ...
    (Linux-Kernel)
  • Re: IIGS Acceleration Idea
    ... > and slot RAM addressing. ... > board plus the faster clock for the IIgs. ... Replace the CPU with a high speed CPU and simple 20x clock ...
    (comp.sys.apple2)