Longhaul
PATCH 1/1 Longhaul
(HZ_100 | HZ_250) - for BCR2 MSR CPU's.
How it works:
1. Stop processes.
2. Call suspend(PMSG_FREEZE) for all devices.
3. Change frequency
4. Call resume() for all devices.
5. Start processes.
Adventages:
- works (sadly avg rate drops to 8MB/s),
- using infrastructure already in kernel,
- no need to poke PIC registers - all interrupts are disabled anyway (APIC compatible?),
- seems to be PREEMPT compatible (no more "sheduling while atomic").
Disadventages:
- suspend(FREEZE) == suspend(SUSPEND) for most devices currently. But this will be fixed anyway.
- it takes a moment.
arch/i386/kernel/cpu/cpufreq/Kconfig +4 -2
@@ -201,9 +201,11 @@ config X86_LONGRUN If in doubt, say N. config X86_LONGHAUL - tristate "VIA Cyrix III Longhaul" + bool "VIA Cyrix III Longhaul (EXPERIMENTAL)" + default n select CPU_FREQ_TABLE - depends on BROKEN + depends on EXPERIMENTAL + depends on !SMP && (HZ_100 || HZ_250) help This adds the CPUFreq driver for VIA Samuel/CyrixIII, VIA Cyrix Samuel/C3, VIA Cyrix Ezra and VIA Cyrix Ezra-T
arch/i386/kernel/cpu/cpufreq/longhaul.c +91 -57
206 lines not on this page · raw message
----------------------------------------------------------------------
Tysiace zdjec swietnych samochodow! >>> http://link.interia.pl/f1944