forked from mirrors/linux
		
	ACPI / Battery: remove battery refresh on resume
This partially reverts commit da8aeb92d4
("ACPI / Battery: Update information on info notification and resume"),
which causes a hang on resume on at least some machines.
This bug was bisected on an ASUS EeePC 901, which hangs at resume time
if we do that "acpi_battery_refresh(battery)" in the battery resume
function.
Rafael suspects we'll still need to refresh the sysfs files upon resume,
but that that can be done from a PM notifier (that will run after
thawing user space).
Bisected-and-tested-by: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Matthew Garrett <mjg@redhat.com>
Cc: Len Brown <len.brown@intel.com>
Acked-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
			
			
This commit is contained in:
		
							parent
							
								
									12fcdba1b7
								
							
						
					
					
						commit
						b23fffd778
					
				
					 1 changed files with 0 additions and 1 deletions
				
			
		| 
						 | 
					@ -998,7 +998,6 @@ static int acpi_battery_resume(struct acpi_device *device)
 | 
				
			||||||
	if (!device)
 | 
						if (!device)
 | 
				
			||||||
		return -EINVAL;
 | 
							return -EINVAL;
 | 
				
			||||||
	battery = acpi_driver_data(device);
 | 
						battery = acpi_driver_data(device);
 | 
				
			||||||
	acpi_battery_refresh(battery);
 | 
					 | 
				
			||||||
	battery->update_time = 0;
 | 
						battery->update_time = 0;
 | 
				
			||||||
	acpi_battery_update(battery);
 | 
						acpi_battery_update(battery);
 | 
				
			||||||
	return 0;
 | 
						return 0;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue