| // SPDX-License-Identifier: GPL-2.0 |
| * Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com) |
| #include <linux/sched/signal.h> |
| #include <linux/sched/task.h> |
| #include <linux/sched/mm.h> |
| #include <linux/spinlock.h> |
| void (*pm_power_off)(void); |
| EXPORT_SYMBOL(pm_power_off); |
| static void kill_off_processes(void) |
| read_lock(&tasklist_lock); |
| t = find_lock_task_mm(p); |
| pid = t->mm->context.id.u.pid; |
| os_kill_ptraced_process(pid, 1); |
| read_unlock(&tasklist_lock); |
| void machine_restart(char * __unused) |
| void machine_power_off(void) |