/* * This file is subject to the terms and conditions of the GNU General Public * License. See the file "COPYING" in the main directory of this archive * for more details. * * Copyright (C) 2001, 06 by Ralf Baechle (ralf@linux-mips.org) * Copyright (C) 2001 MIPS Technologies, Inc. */ #include <linux/kernel.h> #include <linux/export.h> #include <linux/pm.h> #include <linux/types.h> #include <linux/reboot.h> #include <linux/delay.h> #include <asm/reboot.h> /* * Urgs ... Too many MIPS machines to handle this in a generic way. * So handle all using function pointers to machine specific * functions. */ void (*_machine_restart)(char *command); void (*_machine_halt)(void); void (*pm_power_off)(void); EXPORT_SYMBOL(pm_power_off);
void machine_restart(char *command) { if (_machine_restart) _machine_restart(command); #ifdef CONFIG_SMP preempt_disable(); smp_send_stop(); #endif do_kernel_restart(command); mdelay(1000); pr_emerg("Reboot failed -- System halted\n"); local_irq_disable(); while (1); }Contributors
Person | Tokens | Prop | Commits | CommitProp |
Andrew Bresticker | 34 | 65.38% | 1 | 33.33% |
Linus Torvalds (pre-git) | 14 | 26.92% | 1 | 33.33% |
Ralf Bächle | 4 | 7.69% | 1 | 33.33% |
Total | 52 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Andrew Bresticker | 19 | 57.58% | 1 | 33.33% |
Linus Torvalds (pre-git) | 10 | 30.30% | 1 | 33.33% |
Ralf Bächle | 4 | 12.12% | 1 | 33.33% |
Total | 33 | 100.00% | 3 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Andrew Bresticker | 19 | 57.58% | 1 | 25.00% |
Linus Torvalds (pre-git) | 9 | 27.27% | 1 | 25.00% |
Ralf Bächle | 5 | 15.15% | 2 | 50.00% |
Total | 33 | 100.00% | 4 | 100.00% |
Person | Tokens | Prop | Commits | CommitProp |
Andrew Bresticker | 75 | 42.86% | 1 | 12.50% |
Linus Torvalds (pre-git) | 46 | 26.29% | 1 | 12.50% |
Linus Torvalds | 28 | 16.00% | 1 | 12.50% |
Ralf Bächle | 23 | 13.14% | 3 | 37.50% |
Arnaldo Carvalho de Melo | 2 | 1.14% | 1 | 12.50% |
Paul Gortmaker | 1 | 0.57% | 1 | 12.50% |
Total | 175 | 100.00% | 8 | 100.00% |