hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/arch/sh/kernel/reboot.c
....@@ -4,9 +4,7 @@
44 #include <linux/kernel.h>
55 #include <linux/reboot.h>
66 #include <linux/module.h>
7
-#ifdef CONFIG_SUPERH32
87 #include <asm/watchdog.h>
9
-#endif
108 #include <asm/addrspace.h>
119 #include <asm/reboot.h>
1210 #include <asm/tlbflush.h>
....@@ -15,13 +13,11 @@
1513 void (*pm_power_off)(void);
1614 EXPORT_SYMBOL(pm_power_off);
1715
18
-#ifdef CONFIG_SUPERH32
1916 static void watchdog_trigger_immediate(void)
2017 {
2118 sh_wdt_write_cnt(0xFF);
2219 sh_wdt_write_csr(0xC2);
2320 }
24
-#endif
2521
2622 static void native_machine_restart(char * __unused)
2723 {
....@@ -33,10 +29,8 @@
3329 /* Address error with SR.BL=1 first. */
3430 trigger_address_error();
3531
36
-#ifdef CONFIG_SUPERH32
3732 /* If that fails or is unsupported, go for the watchdog next. */
3833 watchdog_trigger_immediate();
39
-#endif
4034
4135 /*
4236 * Give up and sleep.