Short version
‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾‾
• The BIOS/UEFI only sets safe defaults at boot.
• The OS kernel decides “desired” frequency / which logical CPUs should stay active.
• The CPU’s own power-management micro-controller (Intel PCU, AMD SMU, Apple’s SMC, …) does the millisecond-to-microsecond work of actually changing the clock and gating power.
• A tiny quartz oscillator on the motherboard supplies the raw reference clock (e.g. 25 MHz or 100 MHz); the CPU multiplies it internally.
So: nobody “owns” the clock outright—firmware, OS and on-chip logic cooperate, with the silicon having the final say to keep itself safe.
──────────────────────────────────────────────
Deeper dive
──────────────────────────────────────────────
-
Hardware ingredients
• Reference clock: A fixed-frequency crystal on the board (often 24 MHz or 100 MHz).
• PLL (Phase-Locked Loop): Inside every modern CPU core-complex; multiplies the reference clock to something like 3.6 GHz.
• On-chip power/clock controller: a tiny embedded microcontroller that can change multipliers, power-gate parts of the die, watch temperatures, etc.
-
Boot-time role of BIOS / UEFI
• Programs the chipset clock generator.
• Populates ACPI tables (P-states, C-states, CPPC, HWP, etc.) so the OS knows the legal frequency range, turbo limits, package C-states, …
• May lock or unlock overclocking multipliers.
After that, it mostly steps aside.
-
Runtime role of the operating system
• Scheduler decides which logical CPUs/hyper-threads should run tasks.
• Power-management driver (cpufreq in Linux, “Processor Power”/HWP in Windows) chooses a PERFORMANCE level (P-state or frequency “request”).
• When a core has no runnable tasks, the kernel executes hlt / mwait, signalling the chip it may go into a deeper C-state.
-
What the CPU does on its own
• Inside the package a power controller reacts in microseconds:
– raises or lowers the PLL multiplier,
– turns individual core clocks on/off (clock-gating),
– power-gates whole cores or cache slices,
– enforces thermal & electrical limits (throttling),
– handles turbo boost bursts.
• If the OS requested “park core 3”, the silicon still decides when it is safe to drop that core into C6/C10 or to wake it again.
-
“Core parking” specifics
• Windows: A power-policy parameter (0 = never park, 100 = aggressive) influences the scheduler; parked cores appear as “stopped” in Task Manager.
• Linux: The energy-aware scheduler + cpuidle choose to consolidate load; idle cores execute mwait and eventually get power-gated.
• Either way, parking is really “OS says: don’t schedule here unless necessary”, then hardware shuts the clock when idle long enough.
-
Who can override whom?
• Hardware trumps all: If thermals are critical, the CPU will down-clock even if the OS begs for 5 GHz.
• OS can only ask within the limits the firmware advertised (though overclocking tools bypass this by writing model-specific registers directly).
• Firmware can lock out OS requests by not exposing certain P-states or by enabling “hardware controlled performance” (Intel HWP / AMD CPPC).
Key takeaway
Your CPU frequency and core activity are dictated by a hierarchy:
Motherboard crystal → CPU PLL → on-chip power controller ⇆ OS kernel scheduler & power driver ← tables provided by BIOS/UEFI.
All three layers cooperate, but the silicon has veto power to keep itself alive.