Release 4.14 arch/um/kernel/reboot.c
/*
* Copyright (C) 2000 - 2007 Jeff Dike (jdike@{addtoit,linux.intel}.com)
* Licensed under the GPL
*/
#include <linux/sched/signal.h>
#include <linux/sched/task.h>
#include <linux/sched/mm.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/oom.h>
#include <kern_util.h>
#include <os.h>
#include <skas.h>
void (*pm_power_off)(void);
EXPORT_SYMBOL(pm_power_off);
static void kill_off_processes(void)
{
struct task_struct *p;
int pid;
read_lock(&tasklist_lock);
for_each_process(p) {
struct task_struct *t;
t = find_lock_task_mm(p);
if (!t)
continue;
pid = t->mm->context.id.u.pid;
task_unlock(t);
os_kill_ptraced_process(pid, 1);
}
read_unlock(&tasklist_lock);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 46 | 58.97% | 2 | 40.00% |
Anton Vorontsov | 32 | 41.03% | 3 | 60.00% |
Total | 78 | 100.00% | 5 | 100.00% |
void uml_cleanup(void)
{
kmalloc_ok = 0;
do_uml_exitcalls();
kill_off_processes();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 17 | 100.00% | 2 | 100.00% |
Total | 17 | 100.00% | 2 | 100.00% |
void machine_restart(char * __unused)
{
uml_cleanup();
reboot_skas();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 15 | 100.00% | 3 | 100.00% |
Total | 15 | 100.00% | 3 | 100.00% |
void machine_power_off(void)
{
uml_cleanup();
halt_skas();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 13 | 100.00% | 3 | 100.00% |
Total | 13 | 100.00% | 3 | 100.00% |
void machine_halt(void)
{
machine_power_off();
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 10 | 100.00% | 1 | 100.00% |
Total | 10 | 100.00% | 1 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
Jeff Dike | 110 | 62.86% | 6 | 37.50% |
Anton Vorontsov | 36 | 20.57% | 3 | 18.75% |
Eric W. Biedermann | 9 | 5.14% | 1 | 6.25% |
Ingo Molnar | 7 | 4.00% | 3 | 18.75% |
Al Viro | 6 | 3.43% | 1 | 6.25% |
Richard Weinberger | 5 | 2.86% | 1 | 6.25% |
Tejun Heo | 2 | 1.14% | 1 | 6.25% |
Total | 175 | 100.00% | 16 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.