Skip to content

Commit d129479

Browse files
rvoskKAGA-KOKO
authored andcommitted
watchdog: Remove soft_lockup_hrtimer_cnt and related code
After commit 9cf5773 ("watchdog/softlockup: Replace "watchdog/%u" threads with cpu_stop_work"), the percpu soft_lockup_hrtimer_cnt is not used any more, so remove it and related code. Signed-off-by: Jisheng Zhang <[email protected]> Signed-off-by: Thomas Gleixner <[email protected]> Link: https://lore.kernel.org/r/[email protected]
1 parent b3a987b commit d129479

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

kernel/watchdog.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,6 @@ static DEFINE_PER_CPU(struct hrtimer, watchdog_hrtimer);
173173
static DEFINE_PER_CPU(bool, softlockup_touch_sync);
174174
static DEFINE_PER_CPU(bool, soft_watchdog_warn);
175175
static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts);
176-
static DEFINE_PER_CPU(unsigned long, soft_lockup_hrtimer_cnt);
177176
static DEFINE_PER_CPU(struct task_struct *, softlockup_task_ptr_saved);
178177
static DEFINE_PER_CPU(unsigned long, hrtimer_interrupts_saved);
179178
static unsigned long soft_lockup_nmi_warn;
@@ -350,8 +349,6 @@ static DEFINE_PER_CPU(struct cpu_stop_work, softlockup_stop_work);
350349
*/
351350
static int softlockup_fn(void *data)
352351
{
353-
__this_cpu_write(soft_lockup_hrtimer_cnt,
354-
__this_cpu_read(hrtimer_interrupts));
355352
__touch_watchdog();
356353
complete(this_cpu_ptr(&softlockup_completion));
357354

0 commit comments

Comments
 (0)