ipmi_poweroff.c (46557bef3f3834ac33031c7be27d39d90d507442) | ipmi_poweroff.c (6d4561110a3e9fa742aeec6717248a491dfb1878) |
---|---|
1/* 2 * ipmi_poweroff.c 3 * 4 * MontaVista IPMI Poweroff extension to sys_reboot 5 * 6 * Author: MontaVista Software, Inc. 7 * Steven Dake <sdake@mvista.com> 8 * Corey Minyard <cminyard@mvista.com> --- 646 unchanged lines hidden (view full) --- 655 .smi_gone = ipmi_po_smi_gone 656}; 657 658 659#ifdef CONFIG_PROC_FS 660#include <linux/sysctl.h> 661 662static ctl_table ipmi_table[] = { | 1/* 2 * ipmi_poweroff.c 3 * 4 * MontaVista IPMI Poweroff extension to sys_reboot 5 * 6 * Author: MontaVista Software, Inc. 7 * Steven Dake <sdake@mvista.com> 8 * Corey Minyard <cminyard@mvista.com> --- 646 unchanged lines hidden (view full) --- 655 .smi_gone = ipmi_po_smi_gone 656}; 657 658 659#ifdef CONFIG_PROC_FS 660#include <linux/sysctl.h> 661 662static ctl_table ipmi_table[] = { |
663 { .ctl_name = DEV_IPMI_POWEROFF_POWERCYCLE, 664 .procname = "poweroff_powercycle", | 663 { .procname = "poweroff_powercycle", |
665 .data = &poweroff_powercycle, 666 .maxlen = sizeof(poweroff_powercycle), 667 .mode = 0644, | 664 .data = &poweroff_powercycle, 665 .maxlen = sizeof(poweroff_powercycle), 666 .mode = 0644, |
668 .proc_handler = &proc_dointvec }, | 667 .proc_handler = proc_dointvec }, |
669 { } 670}; 671 672static ctl_table ipmi_dir_table[] = { | 668 { } 669}; 670 671static ctl_table ipmi_dir_table[] = { |
673 { .ctl_name = DEV_IPMI, 674 .procname = "ipmi", | 672 { .procname = "ipmi", |
675 .mode = 0555, 676 .child = ipmi_table }, 677 { } 678}; 679 680static ctl_table ipmi_root_table[] = { | 673 .mode = 0555, 674 .child = ipmi_table }, 675 { } 676}; 677 678static ctl_table ipmi_root_table[] = { |
681 { .ctl_name = CTL_DEV, 682 .procname = "dev", | 679 { .procname = "dev", |
683 .mode = 0555, 684 .child = ipmi_dir_table }, 685 { } 686}; 687 688static struct ctl_table_header *ipmi_table_header; 689#endif /* CONFIG_PROC_FS */ 690 --- 62 unchanged lines hidden --- | 680 .mode = 0555, 681 .child = ipmi_dir_table }, 682 { } 683}; 684 685static struct ctl_table_header *ipmi_table_header; 686#endif /* CONFIG_PROC_FS */ 687 --- 62 unchanged lines hidden --- |