idle.c (9cdf083f981b8d37b3212400a359368661385099) idle.c (f5f106784eba94a00bbe73be651e423386ebe6d4)
1/*
2 * Idle daemon for PowerPC. Idle daemon will handle any action
3 * that needs to be taken when the system becomes idle.
4 *
5 * Originally written by Cort Dougan (cort@cs.nmt.edu).
6 * Subsequent 32-bit hacking by Tom Rini, Armin Kuster,
7 * Paul Mackerras and others.
8 *

--- 96 unchanged lines hidden (view full) ---

105 {
106 .ctl_name = KERN_PPC_POWERSAVE_NAP,
107 .procname = "powersave-nap",
108 .data = &powersave_nap,
109 .maxlen = sizeof(int),
110 .mode = 0644,
111 .proc_handler = &proc_dointvec,
112 },
1/*
2 * Idle daemon for PowerPC. Idle daemon will handle any action
3 * that needs to be taken when the system becomes idle.
4 *
5 * Originally written by Cort Dougan (cort@cs.nmt.edu).
6 * Subsequent 32-bit hacking by Tom Rini, Armin Kuster,
7 * Paul Mackerras and others.
8 *

--- 96 unchanged lines hidden (view full) ---

105 {
106 .ctl_name = KERN_PPC_POWERSAVE_NAP,
107 .procname = "powersave-nap",
108 .data = &powersave_nap,
109 .maxlen = sizeof(int),
110 .mode = 0644,
111 .proc_handler = &proc_dointvec,
112 },
113 { 0, },
113 {}
114};
115static ctl_table powersave_nap_sysctl_root[] = {
114};
115static ctl_table powersave_nap_sysctl_root[] = {
116 { 1, "kernel", NULL, 0, 0755, powersave_nap_ctl_table, },
117 { 0,},
116 {
117 .ctl_name = CTL_KERN,
118 .procname = "kernel",
119 .mode = 0755,
120 .child = powersave_nap_ctl_table,
121 },
122 {}
118};
119
120static int __init
121register_powersave_nap_sysctl(void)
122{
123 register_sysctl_table(powersave_nap_sysctl_root, 0);
124
125 return 0;
126}
127__initcall(register_powersave_nap_sysctl);
128#endif
123};
124
125static int __init
126register_powersave_nap_sysctl(void)
127{
128 register_sysctl_table(powersave_nap_sysctl_root, 0);
129
130 return 0;
131}
132__initcall(register_powersave_nap_sysctl);
133#endif