diff options
author | Jim Cromie <jim.cromie@gmail.com> | 2006-06-26 03:25:15 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2006-06-26 12:58:21 -0400 |
commit | 7f9f303aa33c7acc7b4aa9ebea25cbd990bc707b (patch) | |
tree | b5916e6b018356afdb5c8687e554a049532633bd /drivers/clocksource/acpi_pm.c | |
parent | 7d622d4794490cef933c20e4a6279e43e03fafad (diff) |
[PATCH] generic-time: add macro to simplify/hide mask constants
Add a CLOCKSOURCE_MASK macro to simplify initializing the mask for a struct
clocksource, and use it to replace literal mask constants in the various
clocksource drivers.
Signed-off-by: Jim Cromie <jim.cromie@gmail.com>
Acked-by: John Stultz <johnstul@us.ibm.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/clocksource/acpi_pm.c')
-rw-r--r-- | drivers/clocksource/acpi_pm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/clocksource/acpi_pm.c b/drivers/clocksource/acpi_pm.c index 066dc77433d5..7ad3be8c0f49 100644 --- a/drivers/clocksource/acpi_pm.c +++ b/drivers/clocksource/acpi_pm.c | |||
@@ -32,7 +32,7 @@ | |||
32 | */ | 32 | */ |
33 | u32 pmtmr_ioport __read_mostly; | 33 | u32 pmtmr_ioport __read_mostly; |
34 | 34 | ||
35 | #define ACPI_PM_MASK 0xFFFFFF /* limit it to 24 bits */ | 35 | #define ACPI_PM_MASK CLOCKSOURCE_MASK(24) /* limit it to 24 bits */ |
36 | 36 | ||
37 | static inline u32 read_pmtmr(void) | 37 | static inline u32 read_pmtmr(void) |
38 | { | 38 | { |