Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/drivers/soc/qcom/watchdog_v2.c b/drivers/soc/qcom/watchdog_v2.c
- index af2e5dd2dde7..114031b6949b 100644
- --- a/drivers/soc/qcom/watchdog_v2.c
- +++ b/drivers/soc/qcom/watchdog_v2.c
- @@ -52,6 +52,7 @@ static struct workqueue_struct *wdog_wq;
- static struct msm_watchdog_data *wdog_data;
- static int cpu_idle_pc_state[NR_CPUS];
- +struct delayed_work *mdogwork_struct;
- struct msm_watchdog_data {
- unsigned int __iomem phys_base;
- @@ -336,7 +337,7 @@ static void pet_watchdog_work(struct work_struct *work)
- pet_watchdog(wdog_dd);
- - pr_info("%s: %d: %llu, %llu, %llu, %llu\n", __func__, raw_smp_processor_id(),
- + pr_info("%s: %lu, %llu, %llu\n", __func__, jiffies,
- wdog_dd->prev_last_pet, wdog_dd->last_pet_begin);
- @@ -723,6 +724,7 @@ static int msm_watchdog_probe(struct platform_device *pdev)
- cpumask_clear(&wdog_dd->alive_mask);
- INIT_WORK(&wdog_dd->init_dogwork_struct, init_watchdog_work);
- INIT_DELAYED_WORK(&wdog_dd->dogwork_struct, pet_watchdog_work);
- + mdogwork_struct = &wdog_dd->dogwork_struct;
- queue_work(wdog_wq, &wdog_dd->init_dogwork_struct);
- return 0;
- err:
- diff --git a/kernel/workqueue.c b/kernel/workqueue.c
- index 47d26cbbe347..1feb422fb2b8 100644
- --- a/kernel/workqueue.c
- +++ b/kernel/workqueue.c
- @@ -1417,10 +1417,14 @@ bool queue_work_on(int cpu, struct workqueue_struct *wq,
- }
- EXPORT_SYMBOL(queue_work_on);
- +extern struct delayed_work *mdogwork_struct;
- void delayed_work_timer_fn(unsigned long __data)
- {
- struct delayed_work *dwork = (struct delayed_work *)__data;
- + if (dwork == mdogwork_struct)
- + pr_info("%s: %llu\n", __func__, sched_clock());
- +
- /* should have been called from irqsafe timer with irq already off */
- __queue_work(dwork->cpu, dwork->wq, &dwork->work);
- }
- @@ -1454,6 +1458,9 @@ static void __queue_delayed_work(int cpu, struct workqueue_struct *wq,
- dwork->cpu = cpu;
- timer->expires = jiffies + delay;
- + if (dwork == mdogwork_struct)
- + pr_info("%s: %lu, %lu, %lu\n", __func__, delay, jiffies, timer->expires);
- +
- if (unlikely(cpu != WORK_CPU_UNBOUND))
- add_timer_on(timer, cpu);
- else
Add Comment
Please, Sign In to add comment