Skip to content

Commit

Permalink
[PATCH] make pmtmr_ioport __read_mostly
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Andreas Mohr authored and Linus Torvalds committed Jun 26, 2006
1 parent a275254 commit 7d622d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion arch/x86_64/kernel/pmtimer.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 2 additions & 2 deletions drivers/clocksource/acpi_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand All @@ -47,7 +47,7 @@ static cycle_t acpi_pm_read_verified(void)
/*
* 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 {
Expand Down

0 comments on commit 7d622d4

Please sign in to comment.