mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	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>
This commit is contained in:
		
							parent
							
								
									543cf4cb3f
								
							
						
					
					
						commit
						6b148507d3
					
				
					 1 changed files with 19 additions and 0 deletions
				
			
		| 
						 | 
					@ -215,3 +215,22 @@ static int __init init_acpi_pm_clocksource(void)
 | 
				
			||||||
 * but we still need to load before device_initcall
 | 
					 * but we still need to load before device_initcall
 | 
				
			||||||
 */
 | 
					 */
 | 
				
			||||||
fs_initcall(init_acpi_pm_clocksource);
 | 
					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);
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue