diff options
Diffstat (limited to 'debian/patches-rt/irqtime-Use-irq_count-instead-of-preempt_count.patch')
-rw-r--r-- | debian/patches-rt/irqtime-Use-irq_count-instead-of-preempt_count.patch | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/debian/patches-rt/irqtime-Use-irq_count-instead-of-preempt_count.patch b/debian/patches-rt/irqtime-Use-irq_count-instead-of-preempt_count.patch deleted file mode 100644 index 0671e8c76..000000000 --- a/debian/patches-rt/irqtime-Use-irq_count-instead-of-preempt_count.patch +++ /dev/null @@ -1,33 +0,0 @@ -From: Sebastian Andrzej Siewior <bigeasy@linutronix.de> -Date: Fri, 4 Dec 2020 18:00:31 +0100 -Subject: [PATCH] irqtime: Use irq_count() instead of preempt_count() -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.10/older/patches-5.10.8-rt24.tar.xz - -preempt_count() does not contain the softirq bits on a PREEMPT_RT -kernel. irq_count() does. - -Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> ---- - kernel/sched/cputime.c | 4 ++-- - 1 file changed, 2 insertions(+), 2 deletions(-) - ---- a/kernel/sched/cputime.c -+++ b/kernel/sched/cputime.c -@@ -60,7 +60,7 @@ void irqtime_account_irq(struct task_str - cpu = smp_processor_id(); - delta = sched_clock_cpu(cpu) - irqtime->irq_start_time; - irqtime->irq_start_time += delta; -- pc = preempt_count() - offset; -+ pc = irq_count() - offset; - - /* - * We do not account for softirq time from ksoftirqd here. -@@ -421,7 +421,7 @@ void vtime_task_switch(struct task_struc - - void vtime_account_irq(struct task_struct *tsk, unsigned int offset) - { -- unsigned int pc = preempt_count() - offset; -+ unsigned int pc = irq_count() - offset; - - if (pc & HARDIRQ_OFFSET) { - vtime_account_hardirq(tsk); |