Commit 7d622d4794490cef933c20e4a6279e43e03fafad

Authored by Andreas Mohr
Committed by Linus Torvalds
1 parent a275254975

[PATCH] make pmtmr_ioport __read_mostly

- written on init only, accessed for every timer read --> __read_mostly
- fix broken sentence

Signed-off-by: Andreas Mohr <andi@lisas.de>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

Showing 2 changed files with 3 additions and 3 deletions Side-by-side Diff

arch/x86_64/kernel/pmtimer.c
... ... @@ -27,7 +27,7 @@
27 27 /* The I/O port the PMTMR resides at.
28 28 * The location is detected during setup_arch(),
29 29 * in arch/i386/kernel/acpi/boot.c */
30   -u32 pmtmr_ioport;
  30 +u32 pmtmr_ioport __read_mostly;
31 31  
32 32 /* value of the Power timer at last timer interrupt */
33 33 static u32 offset_delay;
drivers/clocksource/acpi_pm.c
... ... @@ -30,7 +30,7 @@
30 30 * The location is detected during setup_arch(),
31 31 * in arch/i386/acpi/boot.c
32 32 */
33   -u32 pmtmr_ioport;
  33 +u32 pmtmr_ioport __read_mostly;
34 34  
35 35 #define ACPI_PM_MASK 0xFFFFFF /* limit it to 24 bits */
36 36  
... ... @@ -47,7 +47,7 @@
47 47 /*
48 48 * It has been reported that because of various broken
49 49 * chipsets (ICH4, PIIX4 and PIIX4E) where the ACPI PM clock
50   - * source is not latched, so you must read it multiple
  50 + * source is not latched, you must read it multiple
51 51 * times to ensure a safe value is read:
52 52 */
53 53 do {