提交 7d622d47 编写于 作者: A Andreas Mohr 提交者: Linus Torvalds

[PATCH] make pmtmr_ioport __read_mostly

- written on init only, accessed for every timer read --> __read_mostly
- fix broken sentence
Signed-off-by: NAndreas Mohr <andi@lisas.de>
Cc: john stultz <johnstul@us.ibm.com>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 a2752549
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
/* The I/O port the PMTMR resides at. /* The I/O port the PMTMR resides at.
* The location is detected during setup_arch(), * The location is detected during setup_arch(),
* in arch/i386/kernel/acpi/boot.c */ * in arch/i386/kernel/acpi/boot.c */
u32 pmtmr_ioport; u32 pmtmr_ioport __read_mostly;
/* value of the Power timer at last timer interrupt */ /* value of the Power timer at last timer interrupt */
static u32 offset_delay; static u32 offset_delay;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
* The location is detected during setup_arch(), * The location is detected during setup_arch(),
* in arch/i386/acpi/boot.c * in arch/i386/acpi/boot.c
*/ */
u32 pmtmr_ioport; u32 pmtmr_ioport __read_mostly;
#define ACPI_PM_MASK 0xFFFFFF /* limit it to 24 bits */ #define ACPI_PM_MASK 0xFFFFFF /* limit it to 24 bits */
...@@ -47,7 +47,7 @@ static cycle_t acpi_pm_read_verified(void) ...@@ -47,7 +47,7 @@ static cycle_t acpi_pm_read_verified(void)
/* /*
* It has been reported that because of various broken * It has been reported that because of various broken
* chipsets (ICH4, PIIX4 and PIIX4E) where the ACPI PM clock * 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: * times to ensure a safe value is read:
*/ */
do { do {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册