Lines Matching refs:thresh
7496 unsigned long thresh = READ_ONCE(wq_watchdog_thresh) * HZ; in wq_watchdog_timer_fn() local
7503 if (!thresh) in wq_watchdog_timer_fn()
7534 if (time_after(now, ts + thresh)) { in wq_watchdog_timer_fn()
7558 mod_timer(&wq_watchdog_timer, jiffies + thresh); in wq_watchdog_timer_fn()
7569 static void wq_watchdog_set_thresh(unsigned long thresh) in wq_watchdog_set_thresh() argument
7574 if (thresh) { in wq_watchdog_set_thresh()
7575 wq_watchdog_thresh = thresh; in wq_watchdog_set_thresh()
7577 mod_timer(&wq_watchdog_timer, jiffies + thresh * HZ); in wq_watchdog_set_thresh()
7584 unsigned long thresh; in wq_watchdog_param_set_thresh() local
7587 ret = kstrtoul(val, 0, &thresh); in wq_watchdog_param_set_thresh()
7592 wq_watchdog_set_thresh(thresh); in wq_watchdog_param_set_thresh()
7594 wq_watchdog_thresh = thresh; in wq_watchdog_param_set_thresh()
7772 unsigned long thresh; in wq_cpu_intensive_thresh_init() local
7796 thresh = 10 * USEC_PER_MSEC; in wq_cpu_intensive_thresh_init()
7801 thresh = min_t(unsigned long, thresh * 4000 / bogo, USEC_PER_SEC); in wq_cpu_intensive_thresh_init()
7804 loops_per_jiffy, bogo, thresh); in wq_cpu_intensive_thresh_init()
7806 wq_cpu_intensive_thresh_us = thresh; in wq_cpu_intensive_thresh_init()