Longhaul - call suspend(PMSG_FREEZE) before and resume() after
Here is simplier patch using PCI bus master disabling code by Dave Jones. Still using block subsystem, but this time it isn't exported to modules.
1. Call suspend(PMSG_FREEZE) for each block device.
2. Change frequency - notice that in this patch at least we give a chance to BCR2 MSR CPU's.
3. Call resume() for each block device.
Tested on Epia M10000. 22MB/s while changing from 997MHz to 532MHz at 1s interval.
EXPERIMENTAL - Please!
(HZ_100 || HZ_250) - because VIA CPU's with BCR2 MSR need >=1ms to sync PLL. !SMP - original code and patch aren't SMP compatible. !X86_UP_APIC - original code and patch aren't APIC compatible.
arch/i386/kernel/cpu/cpufreq/Kconfig +5 -2
@@ -201,14 +201,17 @@ 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 && !SMP && !X86_UP_APIC + depends on (HZ_100 || HZ_250) && (PREEMPT_NONE || PREEMPT_VOLUNTARY) help This adds the CPUFreq driver for VIA Samuel/CyrixIII, VIA Cyrix Samuel/C3, VIA Cyrix Ezra and VIA Cyrix Ezra-T processors. + BIG FAT DISCLAIMER: Work in progress code. Possibly *dangerous* For details, take a look at <file:Documentation/cpu-freq/>. If in doubt, say N.
arch/i386/kernel/cpu/cpufreq/longhaul.c +134 -51
235 lines not on this page · raw message
block/genhd.c +3 -4
@@ -16,9 +16,9 @@#include <linux/kobj_map.h> #include <linux/buffer_head.h> -static struct subsystem block_subsys; +struct subsystem block_subsys; -static DECLARE_MUTEX (block_subsys_sem); +DECLARE_MUTEX (block_subsys_sem);/* * Can be deleted altogether. Later.
@@ -511,8 +511,7 @@ static struct kset_uevent_ops block_ueve };/* declare block_subsys. */ -static decl_subsys(block, &ktype_block, &block_uevent_ops); - +decl_subsys (block, &ktype_block, &block_uevent_ops);/* * aggregate disk stat collector. Uses the same stats that the sysfs
----------------------------------------------------------------------
Poznaj Stefana! Zmien komunikator! >>> http://link.interia.pl/f1924