lkml.org 
[lkml]   [2021]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] softirq: Remove the unnecessary CONFIG_TRACE_IRQFLAGS
Date
The local_irq_enable() and local_irq_disable() had two definitions that
include CONFIG_TRACE_IRQFLAGS or not.

Signed-off-by: Yejune Deng <yejunedeng@gmail.com>
---
kernel/softirq.c | 4 ----
1 file changed, 4 deletions(-)

diff --git a/kernel/softirq.c b/kernel/softirq.c
index 4992853..a81d804 100644
--- a/kernel/softirq.c
+++ b/kernel/softirq.c
@@ -362,9 +362,7 @@ void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
{
WARN_ON_ONCE(in_irq());
lockdep_assert_irqs_enabled();
-#ifdef CONFIG_TRACE_IRQFLAGS
local_irq_disable();
-#endif
/*
* Are softirqs going to be turned on now:
*/
@@ -385,9 +383,7 @@ void __local_bh_enable_ip(unsigned long ip, unsigned int cnt)
}

preempt_count_dec();
-#ifdef CONFIG_TRACE_IRQFLAGS
local_irq_enable();
-#endif
preempt_check_resched();
}
EXPORT_SYMBOL(__local_bh_enable_ip);
--
2.7.4
\
 
 \ /
  Last update: 2021-06-02 09:36    [W:0.288 / U:0.084 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site