summaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2011-07-13 12:05:05 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:56 (GMT)
commitef6bcccdb8ae11d181029a5e2a866140fdc4f1ce (patch)
tree3356c34fcb92ea65b8e6ed60e4cb08d8e3be4094 /kernel
parent6055cd8acd25c523ef0fd8d15bac00b2ecce82fc (diff)
downloadlinux-fsl-qoriq-ef6bcccdb8ae11d181029a5e2a866140fdc4f1ce.tar.xz
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.c5
-rw-r--r--kernel/timer.c6
2 files changed, 9 insertions, 2 deletions
diff --git a/kernel/irq_work.c b/kernel/irq_work.c
index 55fcce6..f6e4377 100644
--- a/kernel/irq_work.c
+++ b/kernel/irq_work.c
@@ -119,8 +119,9 @@ static void __irq_work_run(void)
if (llist_empty(this_list))
return;
+#ifndef CONFIG_PREEMPT_RT_FULL
BUG_ON(!irqs_disabled());
-
+#endif
llnode = llist_del_all(this_list);
while (llnode != NULL) {
work = llist_entry(llnode, struct irq_work, llnode);
@@ -152,7 +153,9 @@ static void __irq_work_run(void)
*/
void irq_work_run(void)
{
+#ifndef CONFIG_PREEMPT_RT_FULL
BUG_ON(!in_irq());
+#endif
__irq_work_run();
}
EXPORT_SYMBOL_GPL(irq_work_run);
diff --git a/kernel/timer.c b/kernel/timer.c
index e30108e..a85ac8f 100644
--- a/kernel/timer.c
+++ b/kernel/timer.c
@@ -1425,7 +1425,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
@@ -1439,6 +1439,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
+
if (time_after_eq(jiffies, base->timer_jiffies))
__run_timers(base);
}