Skip to content

Commit

Permalink
lockup_detector: Remove unused panic_notifier
Browse files Browse the repository at this point in the history
The panic notifer in lockup_detector just set did_panic to 1.
But did_panic is not used anywhere so we can just remove it.

Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Cc: peterz@infradead.org
Cc: gorcunov@gmail.com
Cc: fweisbec@gmail.com
LKML-Reference: <1283310009-22168-4-git-send-email-dzickus@redhat.com>
Signed-off-by: Don Zickus <dzickus@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Akinobu Mita authored and Ingo Molnar committed Sep 1, 2010
1 parent eac2433 commit 14416c3
Showing 1 changed file with 0 additions and 15 deletions.
15 changes: 0 additions & 15 deletions kernel/watchdog.c
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@ static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved);
static DEFINE_PER_CPU(struct perf_event *, watchdog_ev);
#endif

static int __read_mostly did_panic;
static int __initdata no_watchdog;


Expand Down Expand Up @@ -180,18 +179,6 @@ static int is_softlockup(unsigned long touch_ts)
return 0;
}

static int
watchdog_panic(struct notifier_block *this, unsigned long event, void *ptr)
{
did_panic = 1;

return NOTIFY_DONE;
}

static struct notifier_block panic_block = {
.notifier_call = watchdog_panic,
};

#ifdef CONFIG_HARDLOCKUP_DETECTOR
static struct perf_event_attr wd_hw_attr = {
.type = PERF_TYPE_HARDWARE,
Expand Down Expand Up @@ -564,8 +551,6 @@ static int __init spawn_watchdog_task(void)
cpu_callback(&cpu_nfb, CPU_ONLINE, cpu);
register_cpu_notifier(&cpu_nfb);

atomic_notifier_chain_register(&panic_notifier_list, &panic_block);

return 0;
}
early_initcall(spawn_watchdog_task);

0 comments on commit 14416c3

Please sign in to comment.