diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2011-07-13 14:05:05 +0200 |
---|---|---|
committer | Steven Rostedt <rostedt@rostedt.homelinux.com> | 2013-01-17 15:09:08 -0500 |
commit | 7a7b7ee28b9d53314d23a670617eea4cbc9b589d (patch) | |
tree | 35d79dc129ff579288bd925af8f8048e6c74b0d7 /kernel | |
parent | 27254bf93e789053a3c4e734afa1131d5ed195a5 (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.c | 2 | ||||
-rw-r--r-- | kernel/timer.c | 6 |
2 files changed, 7 insertions, 1 deletions
diff --git a/kernel/irq_work.c b/kernel/irq_work.c index 1588e3b2871b..170c2eabc00f 100644 --- a/kernel/irq_work.c +++ b/kernel/irq_work.c @@ -107,8 +107,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 e15edbe15e9f..e5b51e041085 100644 --- a/kernel/timer.c +++ b/kernel/timer.c @@ -1414,7 +1414,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 @@ -1428,6 +1428,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(); |