Introduce a mechanism to detect and warn about prolonged IRQ handlers....> +static inline void irqhandler_duration_check(u64 ts_start, unsigned int irq,
With a new command-line parameter (irqhandler.duration_warn_us=),
users can configure the duration threshold in microseconds when a warning
in such format should be emitted:
"[CPU14] long duration of IRQ[159:bad_irq_handler [long_irq]], took: 1330 us"
The implementation uses local_clock() to measure the execution duration of the
generic IRQ per-CPU event handler.
+ const struct irqaction *action)
+{
+ /* Approx. conversion to microseconds */
+ u64 delta_us = (local_clock() - ts_start) >> 10;