Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMel Gorman <mgorman@suse.de>2017-11-15 14:39:17 +0000
committerMel Gorman <mgorman@suse.de>2017-11-15 14:39:20 +0000
commit68dfa608eeb59faf583bb4f25a44349e72745704 (patch)
tree798aeef0709fb5f48e2b8ebe918f011e791a93cc
parentf0e03cc183dda7e5513b6adecc5782dcbd472286 (diff)
timers/hrtimer: Use lockdep to assert IRQs are disabled/enabled
(bnc#1068202 Avoid irqs_disabled debugging checks in fast paths). suse-commit: cfb688fc599a2cadeb54fb0451bce1e405b0f905
-rw-r--r--kernel/time/hrtimer.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/kernel/time/hrtimer.c b/kernel/time/hrtimer.c
index ac053bb5296e..82a06d25e644 100644
--- a/kernel/time/hrtimer.c
+++ b/kernel/time/hrtimer.c
@@ -757,9 +757,7 @@ void clock_was_set(void)
*/
void hrtimers_resume(void)
{
- WARN_ONCE(!irqs_disabled(),
- KERN_INFO "hrtimers_resume() called with IRQs enabled!");
-
+ lockdep_assert_irqs_disabled();
/* Retrigger on the local CPU */
retrigger_next_event(NULL);
/* And schedule a retrigger for all others */