Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 68acc05d authored by Eric W. Biederman's avatar Eric W. Biederman Committed by Linus Torvalds
Browse files

[PATCH] pcwd.c: Call kernel_power_off not machine_power_off



The call appears to come from process context so kernel_power_off
should be safe.  And acpi_power_off won't necessarily work if you just
call machine_power_off.

Signed-off-by: default avatarEric W. Biederman <ebiederm@xmission.com>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent fdde86ac
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -344,7 +344,7 @@ static int pcwd_get_status(int *status)
			*status |= WDIOF_OVERHEAT;
			if (temp_panic) {
				printk (KERN_INFO PFX "Temperature overheat trip!\n");
				machine_power_off();
				kernel_power_off();
			}
		}
	} else {
@@ -355,7 +355,7 @@ static int pcwd_get_status(int *status)
			*status |= WDIOF_OVERHEAT;
			if (temp_panic) {
				printk (KERN_INFO PFX "Temperature overheat trip!\n");
				machine_power_off();
				kernel_power_off();
			}
		}
	}