mirror of
				git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
				synced 2025-10-31 08:44:41 +00:00 
			
		
		
		
	Merge branch 'acpi-assorted'
* acpi-assorted: ACPI: implement acpi_os_get_timer() according the spec
This commit is contained in:
		
						commit
						5c0b1b2003
					
				
					 1 changed files with 3 additions and 13 deletions
				
			
		|  | @ -835,19 +835,9 @@ void acpi_os_stall(u32 us) | |||
|  */ | ||||
| u64 acpi_os_get_timer(void) | ||||
| { | ||||
| 	static u64 t; | ||||
| 
 | ||||
| #ifdef	CONFIG_HPET | ||||
| 	/* TBD: use HPET if available */ | ||||
| #endif | ||||
| 
 | ||||
| #ifdef	CONFIG_X86_PM_TIMER | ||||
| 	/* TBD: default to PM timer if HPET was not available */ | ||||
| #endif | ||||
| 	if (!t) | ||||
| 		printk(KERN_ERR PREFIX "acpi_os_get_timer() TBD\n"); | ||||
| 
 | ||||
| 	return ++t; | ||||
| 	u64 time_ns = ktime_to_ns(ktime_get()); | ||||
| 	do_div(time_ns, 100); | ||||
| 	return time_ns; | ||||
| } | ||||
| 
 | ||||
| acpi_status acpi_os_read_port(acpi_io_address port, u32 * value, u32 width) | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue
	
	 Rafael J. Wysocki
						Rafael J. Wysocki