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:21 +0000
commitcc8e8981cdfe7051af300afe0ce10992fbb1b35c (patch)
tree1eae3fdc985d99d9f7505e9bd76395ee56f5ef94
parent3a46b4337b931b9a6ac0b7c32df3341ad75acd9f (diff)
timers/posix-cpu-timers: Use lockdep to assert IRQs are
disabled/enabled (bnc#1068202 Avoid irqs_disabled debugging checks in fast paths). suse-commit: f6fd865afb685d800ea0e73d66544de10691dfc3
-rw-r--r--kernel/time/posix-cpu-timers.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/time/posix-cpu-timers.c b/kernel/time/posix-cpu-timers.c
index d2a1e6dd0291..29e695f174f2 100644
--- a/kernel/time/posix-cpu-timers.c
+++ b/kernel/time/posix-cpu-timers.c
@@ -590,7 +590,7 @@ static int posix_cpu_timer_set(struct k_itimer *timer, int timer_flags,
/*
* Disarm any old timer after extracting its expiry time.
*/
- WARN_ON_ONCE(!irqs_disabled());
+ lockdep_assert_irqs_disabled();
ret = 0;
old_incr = timer->it.cpu.incr;
@@ -1027,7 +1027,7 @@ void posix_cpu_timer_schedule(struct k_itimer *timer)
/*
* Now re-arm for the new expiry time.
*/
- WARN_ON_ONCE(!irqs_disabled());
+ lockdep_assert_irqs_disabled();
arm_timer(timer);
unlock_task_sighand(p, &flags);
@@ -1122,7 +1122,7 @@ void run_posix_cpu_timers(struct task_struct *tsk)
struct k_itimer *timer, *next;
unsigned long flags;
- WARN_ON_ONCE(!irqs_disabled());
+ lockdep_assert_irqs_disabled();
/*
* The fast path checks that there are no expired thread or thread