| .. | .. |
|---|
| 123 | 123 | /* It seems we have no way to power the system off via |
|---|
| 124 | 124 | * software. The user has to press the button himself. */ |
|---|
| 125 | 125 | |
|---|
| 126 | | - printk(KERN_EMERG "System shut down completed.\n" |
|---|
| 127 | | - "Please power this system off now."); |
|---|
| 126 | + printk("Power off or press RETURN to reboot.\n"); |
|---|
| 128 | 127 | |
|---|
| 129 | 128 | /* prevent soft lockup/stalled CPU messages for endless loop. */ |
|---|
| 130 | 129 | rcu_sysrq_start(); |
|---|
| 131 | 130 | lockup_detector_soft_poweroff(); |
|---|
| 132 | | - for (;;); |
|---|
| 131 | + while (1) { |
|---|
| 132 | + /* reboot if user presses RETURN key */ |
|---|
| 133 | + if (pdc_iodc_getc() == 13) { |
|---|
| 134 | + printk("Rebooting...\n"); |
|---|
| 135 | + machine_restart(NULL); |
|---|
| 136 | + } |
|---|
| 137 | + } |
|---|
| 133 | 138 | } |
|---|
| 134 | 139 | |
|---|
| 135 | 140 | void (*pm_power_off)(void); |
|---|