diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2008-05-21 15:14:58 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2008-07-10 01:10:00 -0400 |
commit | 6b148507d3d042a3c11f4c3f6c0f649c6a89220d (patch) | |
tree | fb4df1223511e269cbc9cc801dcd22b0ce5f6832 /drivers/clocksource/acpi_pm.c | |
parent | 543cf4cb3fe6f6cae3651ba918b9c56200b257d0 (diff) |
pmtmr: allow command line override of ioport
Stupid BIOSes do not tell us about the PMTimer,
but we might know where it is.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/clocksource/acpi_pm.c')
-rw-r--r-- | drivers/clocksource/acpi_pm.c | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/drivers/clocksource/acpi_pm.c b/drivers/clocksource/acpi_pm.c index 7b46faf22318..3baee020afc2 100644 --- a/drivers/clocksource/acpi_pm.c +++ b/drivers/clocksource/acpi_pm.c | |||
@@ -215,3 +215,22 @@ pm_good: | |||
215 | * but we still need to load before device_initcall | 215 | * but we still need to load before device_initcall |
216 | */ | 216 | */ |
217 | fs_initcall(init_acpi_pm_clocksource); | 217 | fs_initcall(init_acpi_pm_clocksource); |
218 | |||
219 | /* | ||
220 | * Allow an override of the IOPort. Stupid BIOSes do not tell us about | ||
221 | * the PMTimer, but we might know where it is. | ||
222 | */ | ||
223 | static int __init parse_pmtmr(char *arg) | ||
224 | { | ||
225 | unsigned long base; | ||
226 | |||
227 | if (strict_strtoul(arg, 16, &base)) | ||
228 | return -EINVAL; | ||
229 | |||
230 | printk(KERN_INFO "PMTMR IOPort override: 0x%04lx -> 0x%04lx\n", | ||
231 | pmtmr_ioport, base); | ||
232 | pmtmr_ioport = base; | ||
233 | |||
234 | return 1; | ||
235 | } | ||
236 | __setup("pmtmr=", parse_pmtmr); | ||