diff options
author | Dean Nelson <dcn@sgi.com> | 2006-01-10 12:07:19 -0500 |
---|---|---|
committer | Tony Luck <tony.luck@intel.com> | 2006-01-13 13:33:44 -0500 |
commit | 0752c670d83362609c7f3f59ffa0e180709c60c2 (patch) | |
tree | aef0bc9705de8263c6897352e818d12e5deecfc5 /arch | |
parent | 1ecaded80f94f2779160529aef7d6f37a22c2f60 (diff) |
[IA64-SGI] XPC and unregistering from notifier lists
Only unregister from notifier lists if XPC is unloading.
Signed-off-by: Dean Nelson <dcn@sgi.com>
Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/ia64/sn/kernel/xpc_main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/arch/ia64/sn/kernel/xpc_main.c b/arch/ia64/sn/kernel/xpc_main.c index 948206b13f68..dcac286dab32 100644 --- a/arch/ia64/sn/kernel/xpc_main.c +++ b/arch/ia64/sn/kernel/xpc_main.c | |||
@@ -1022,11 +1022,13 @@ xpc_do_exit(enum xpc_retval reason) | |||
1022 | del_timer_sync(&xpc_hb_timer); | 1022 | del_timer_sync(&xpc_hb_timer); |
1023 | DBUG_ON(xpc_vars->heartbeating_to_mask != 0); | 1023 | DBUG_ON(xpc_vars->heartbeating_to_mask != 0); |
1024 | 1024 | ||
1025 | /* take ourselves off of the reboot_notifier_list */ | 1025 | if (reason == xpcUnloading) { |
1026 | (void) unregister_reboot_notifier(&xpc_reboot_notifier); | 1026 | /* take ourselves off of the reboot_notifier_list */ |
1027 | (void) unregister_reboot_notifier(&xpc_reboot_notifier); | ||
1027 | 1028 | ||
1028 | /* take ourselves off of the die_notifier list */ | 1029 | /* take ourselves off of the die_notifier list */ |
1029 | (void) unregister_die_notifier(&xpc_die_notifier); | 1030 | (void) unregister_die_notifier(&xpc_die_notifier); |
1031 | } | ||
1030 | 1032 | ||
1031 | /* close down protections for IPI operations */ | 1033 | /* close down protections for IPI operations */ |
1032 | xpc_restrict_IPI_ops(); | 1034 | xpc_restrict_IPI_ops(); |