diff options
author | Eric W. Biederman <ebiederm@xmission.com> | 2005-07-26 13:36:01 -0400 |
---|---|---|
committer | Linus Torvalds <torvalds@g5.osdl.org> | 2005-07-26 17:35:42 -0400 |
commit | 59586e5a262a29361c45c929ea3253d4aec830b0 (patch) | |
tree | 1219b4943bc04515973a44c6e3a184e4f6f026f0 /arch/cris/kernel | |
parent | 16dcb4bbda579c4e3d80048b755ac124d8fab21a (diff) |
[PATCH] Don't export machine_restart, machine_halt, or machine_power_off.
machine_restart, machine_halt and machine_power_off are machine
specific hooks deep into the reboot logic, that modules
have no business messing with. Usually code should be calling
kernel_restart, kernel_halt, kernel_power_off, or
emergency_restart. So don't export machine_restart,
machine_halt, and machine_power_off so we can catch buggy users.
Signed-off-by: Eric W. Biederman <ebiederm@xmission.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch/cris/kernel')
-rw-r--r-- | arch/cris/kernel/process.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/arch/cris/kernel/process.c b/arch/cris/kernel/process.c index 7645c4d4de6f..a5ad2b675853 100644 --- a/arch/cris/kernel/process.c +++ b/arch/cris/kernel/process.c | |||
@@ -214,8 +214,6 @@ void machine_restart(char *cmd) | |||
214 | hard_reset_now(); | 214 | hard_reset_now(); |
215 | } | 215 | } |
216 | 216 | ||
217 | EXPORT_SYMBOL(machine_restart); | ||
218 | |||
219 | /* | 217 | /* |
220 | * Similar to machine_power_off, but don't shut off power. Add code | 218 | * Similar to machine_power_off, but don't shut off power. Add code |
221 | * here to freeze the system for e.g. post-mortem debug purpose when | 219 | * here to freeze the system for e.g. post-mortem debug purpose when |
@@ -226,16 +224,12 @@ void machine_halt(void) | |||
226 | { | 224 | { |
227 | } | 225 | } |
228 | 226 | ||
229 | EXPORT_SYMBOL(machine_halt); | ||
230 | |||
231 | /* If or when software power-off is implemented, add code here. */ | 227 | /* If or when software power-off is implemented, add code here. */ |
232 | 228 | ||
233 | void machine_power_off(void) | 229 | void machine_power_off(void) |
234 | { | 230 | { |
235 | } | 231 | } |
236 | 232 | ||
237 | EXPORT_SYMBOL(machine_power_off); | ||
238 | |||
239 | /* | 233 | /* |
240 | * When a process does an "exec", machine state like FPU and debug | 234 | * When a process does an "exec", machine state like FPU and debug |
241 | * registers need to be reset. This is a hook function for that. | 235 | * registers need to be reset. This is a hook function for that. |