-mm: make pmtmr_ioport __read_mostly
Subsystems (2)
PATCH 1/1 -mm: make pmtmr_ioport __read_mostly
Hello all,
- written on init only, accessed for every timer read --> __read_mostly
- fix broken sentence
Patch tested on 2.6.17-rc1-mm2, rediffed against 2.6.17-rc1-mm3. I did not test the x86_64 part, though, for obvious reasons.
Signed-off-by Andreas Mohr <[email protected]>
drivers/clocksource/acpi_pm.c +2 -2
@@ -30,7 +30,7 @@* The location is detected during setup_arch(), * in arch/i386/acpi/boot.c */ -u32 pmtmr_ioport; +u32 pmtmr_ioport__read_mostly ;#define ACPI_PM_MASK 0xFFFFFF/* limit it to 24 bits */
@@ -47,7 +47,7 @@/* * It has been reported that because of various broken * chipsets (ICH4, PIIX4 and PIIX4E) where the ACPI PM clock -* source is not latched, so you must read it multiple +* source is not latched, you must read it multiple * times to ensure a safe value is read: */ do {
arch/x86_64/kernel/pmtimer.c +1 -1
@@ -27,7 +27,7 @@/* The I/O port the PMTMR resides at. * The location is detected during setup_arch(), * in arch/i386/kernel/acpi/boot.c */ -u32 pmtmr_ioport; +u32 pmtmr_ioport__read_mostly ;/* value of the Power timer at last timer interrupt */ static u32 offset_delay;