summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-13 14:05:05 +0200
committerClark Williams <williams@redhat.com>2011-11-14 11:02:07 -0600
commitb5b2fa299d95255c3d64b57746ae5c4bd04c0c34 (patch)
treebe52d2f31338f5da02a12dae8880f6a67383a049 /kernel
parentdbc0cc68413f8da8bf953adc71a92cd094a2abd8 (diff)
x86-no-perf-irq-work-rt.patch
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/irq_work.c2
-rw-r--r--kernel/timer.c6
2 files changed, 7 insertions, 1 deletions
diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index c3c46c72046e..727ba59e38f9 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -105,8 +105,10 @@ void irq_work_run(void)
if (llist_empty(this_list))
return;
+#ifndef CONFIG_PREEMPT_RT_FULL
BUG_ON(!in_irq());
BUG_ON(!irqs_disabled());
+#endif
llnode = llist_del_all(this_list);
while (llnode != NULL) {
diff --git a/kernel/timer.c b/kernel/timer.c
index a9e8a46144a6..fba6aaa4eca1 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1362,7 +1362,7 @@ void update_process_times(int user_tick)
scheduler_tick();
run_local_timers();
rcu_check_callbacks(cpu, user_tick);
-#ifdef CONFIG_IRQ_WORK
+#if defined(CONFIG_IRQ_WORK) && !defined(CONFIG_PREEMPT_RT_FULL)
if (in_irq())
irq_work_run();
#endif
@@ -1376,6 +1376,10 @@ static void run_timer_softirq(struct softirq_action *h)
{
struct tvec_base *base = __this_cpu_read(tvec_bases);
+#if defined(CONFIG_IRQ_WORK) && defined(CONFIG_PREEMPT_RT_FULL)
+ irq_work_run();
+#endif
+
printk_tick();
hrtimer_run_pending();