aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/reboot.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/reboot.c')
-rw-r--r--kernel/reboot.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/reboot.c b/kernel/reboot.c
index e4ced883d8de..8fb44dec9ad7 100644
--- a/kernel/reboot.c
+++ b/kernel/reboot.c
@@ -294,7 +294,7 @@ void kernel_power_off(void)
294} 294}
295EXPORT_SYMBOL_GPL(kernel_power_off); 295EXPORT_SYMBOL_GPL(kernel_power_off);
296 296
297static DEFINE_MUTEX(reboot_mutex); 297DEFINE_MUTEX(system_transition_mutex);
298 298
299/* 299/*
300 * Reboot system call: for obvious reasons only root may call it, 300 * Reboot system call: for obvious reasons only root may call it,
@@ -338,7 +338,7 @@ SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
338 if ((cmd == LINUX_REBOOT_CMD_POWER_OFF) && !pm_power_off) 338 if ((cmd == LINUX_REBOOT_CMD_POWER_OFF) && !pm_power_off)
339 cmd = LINUX_REBOOT_CMD_HALT; 339 cmd = LINUX_REBOOT_CMD_HALT;
340 340
341 mutex_lock(&reboot_mutex); 341 mutex_lock(&system_transition_mutex);
342 switch (cmd) { 342 switch (cmd) {
343 case LINUX_REBOOT_CMD_RESTART: 343 case LINUX_REBOOT_CMD_RESTART:
344 kernel_restart(NULL); 344 kernel_restart(NULL);
@@ -389,7 +389,7 @@ SYSCALL_DEFINE4(reboot, int, magic1, int, magic2, unsigned int, cmd,
389 ret = -EINVAL; 389 ret = -EINVAL;
390 break; 390 break;
391 } 391 }
392 mutex_unlock(&reboot_mutex); 392 mutex_unlock(&system_transition_mutex);
393 return ret; 393 return ret;
394} 394}
395 395