File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Load Diff This file was deleted.
Original file line number Diff line number Diff line change 11# SPDX-License-Identifier: GPL-2.0
22generated-y += unistd_32.h
3+ generic-y += ucontext.h
Original file line number Diff line number Diff line change @@ -32,8 +32,7 @@ static int iss_power_off(struct sys_off_data *unused)
3232 return NOTIFY_DONE ;
3333}
3434
35- static int iss_restart (struct notifier_block * this ,
36- unsigned long event , void * ptr )
35+ static int iss_restart (struct sys_off_data * unused )
3736{
3837 /* Flush and reset the mmu, simulate a processor reset, and
3938 * jump to the reset vector. */
@@ -42,10 +41,6 @@ static int iss_restart(struct notifier_block *this,
4241 return NOTIFY_DONE ;
4342}
4443
45- static struct notifier_block iss_restart_block = {
46- .notifier_call = iss_restart ,
47- };
48-
4944static int
5045iss_panic_event (struct notifier_block * this , unsigned long event , void * ptr )
5146{
@@ -84,7 +79,9 @@ void __init platform_setup(char **p_cmdline)
8479 }
8580
8681 atomic_notifier_chain_register (& panic_notifier_list , & iss_panic_block );
87- register_restart_handler (& iss_restart_block );
82+ register_sys_off_handler (SYS_OFF_MODE_RESTART ,
83+ SYS_OFF_PRIO_PLATFORM ,
84+ iss_restart , NULL );
8885 register_sys_off_handler (SYS_OFF_MODE_POWER_OFF ,
8986 SYS_OFF_PRIO_PLATFORM ,
9087 iss_power_off , NULL );
Original file line number Diff line number Diff line change @@ -50,8 +50,7 @@ static int xt2000_power_off(struct sys_off_data *unused)
5050 return NOTIFY_DONE ;
5151}
5252
53- static int xt2000_restart (struct notifier_block * this ,
54- unsigned long event , void * ptr )
53+ static int xt2000_restart (struct sys_off_data * unused )
5554{
5655 /* Flush and reset the mmu, simulate a processor reset, and
5756 * jump to the reset vector. */
@@ -60,10 +59,6 @@ static int xt2000_restart(struct notifier_block *this,
6059 return NOTIFY_DONE ;
6160}
6261
63- static struct notifier_block xt2000_restart_block = {
64- .notifier_call = xt2000_restart ,
65- };
66-
6762void __init platform_setup (char * * cmdline )
6863{
6964 led_print (0 , "LINUX " );
@@ -140,7 +135,9 @@ static int __init xt2000_setup_devinit(void)
140135 platform_device_register (& xt2000_serial8250_device );
141136 platform_device_register (& xt2000_sonic_device );
142137 mod_timer (& heartbeat_timer , jiffies + HZ / 2 );
143- register_restart_handler (& xt2000_restart_block );
138+ register_sys_off_handler (SYS_OFF_MODE_RESTART ,
139+ SYS_OFF_PRIO_PLATFORM ,
140+ xt2000_restart , NULL );
144141 register_sys_off_handler (SYS_OFF_MODE_POWER_OFF ,
145142 SYS_OFF_PRIO_DEFAULT ,
146143 xt2000_power_off , NULL );
Original file line number Diff line number Diff line change @@ -42,8 +42,7 @@ static int xtfpga_power_off(struct sys_off_data *unused)
4242 return NOTIFY_DONE ;
4343}
4444
45- static int xtfpga_restart (struct notifier_block * this ,
46- unsigned long event , void * ptr )
45+ static int xtfpga_restart (struct sys_off_data * unused )
4746{
4847 /* Try software reset first. */
4948 WRITE_ONCE (* (u32 * )XTFPGA_SWRST_VADDR , 0xdead );
@@ -56,10 +55,6 @@ static int xtfpga_restart(struct notifier_block *this,
5655 return NOTIFY_DONE ;
5756}
5857
59- static struct notifier_block xtfpga_restart_block = {
60- .notifier_call = xtfpga_restart ,
61- };
62-
6358#ifdef CONFIG_XTENSA_CALIBRATE_CCOUNT
6459
6560void __init platform_calibrate_ccount (void )
@@ -71,7 +66,9 @@ void __init platform_calibrate_ccount(void)
7166
7267static void __init xtfpga_register_handlers (void )
7368{
74- register_restart_handler (& xtfpga_restart_block );
69+ register_sys_off_handler (SYS_OFF_MODE_RESTART ,
70+ SYS_OFF_PRIO_PLATFORM ,
71+ xtfpga_restart , NULL );
7572 register_sys_off_handler (SYS_OFF_MODE_POWER_OFF ,
7673 SYS_OFF_PRIO_DEFAULT ,
7774 xtfpga_power_off , NULL );
You can’t perform that action at this time.
0 commit comments