Skip to content

Commit

Permalink
pmtmr: allow command line override of ioport
Browse files Browse the repository at this point in the history
Stupid BIOSes do not tell us about the PMTimer, 
but we might know where it is.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Jul 10, 2008
1 parent 543cf4c commit 6b14850
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions drivers/clocksource/acpi_pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -215,3 +215,22 @@ static int __init init_acpi_pm_clocksource(void)
* but we still need to load before device_initcall
*/
fs_initcall(init_acpi_pm_clocksource);

/*
* Allow an override of the IOPort. Stupid BIOSes do not tell us about
* the PMTimer, but we might know where it is.
*/
static int __init parse_pmtmr(char *arg)
{
unsigned long base;

if (strict_strtoul(arg, 16, &base))
return -EINVAL;

printk(KERN_INFO "PMTMR IOPort override: 0x%04lx -> 0x%04lx\n",
pmtmr_ioport, base);
pmtmr_ioport = base;

return 1;
}
__setup("pmtmr=", parse_pmtmr);

0 comments on commit 6b14850

Please sign in to comment.