linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] irqflags: Remove the CONFIG_TRACE_IRQFLAGS
@ 2021-05-24  2:51 Yejune Deng
  2021-05-24 11:26 ` Mark Rutland
  2021-05-25  7:03 ` [irqflags] 21db66c4ff: will-it-scale.per_process_ops -4.5% regression kernel test robot
  0 siblings, 2 replies; 4+ messages in thread
From: Yejune Deng @ 2021-05-24  2:51 UTC (permalink / raw)
  To: peterz, tglx, mingo, rafael.j.wysocki, rostedt, npiggin,
	mark.rutland, yejunedeng, elver
  Cc: linux-kernel

trace_hardirqs_on() and trace_hardirqs_off() had include the
CONFIG_TRACE_IRQFLAGS, so remove the redundant CONFIG_TRACE_IRQFLAGS.

Signed-off-by: Yejune Deng <yejunedeng@gmail.com>
---
 include/linux/irqflags.h | 16 ----------------
 1 file changed, 16 deletions(-)

diff --git a/include/linux/irqflags.h b/include/linux/irqflags.h
index 600c10d..b5edd7b 100644
--- a/include/linux/irqflags.h
+++ b/include/linux/irqflags.h
@@ -189,12 +189,6 @@ extern void warn_bogus_irq_restore(void);
 #define raw_irqs_disabled()		(arch_irqs_disabled())
 #define raw_safe_halt()			arch_safe_halt()
 
-/*
- * The local_irq_*() APIs are equal to the raw_local_irq*()
- * if !TRACE_IRQFLAGS.
- */
-#ifdef CONFIG_TRACE_IRQFLAGS
-
 #define local_irq_enable()				\
 	do {						\
 		trace_hardirqs_on();			\
@@ -230,16 +224,6 @@ extern void warn_bogus_irq_restore(void);
 	} while (0)
 
 
-#else /* !CONFIG_TRACE_IRQFLAGS */
-
-#define local_irq_enable()	do { raw_local_irq_enable(); } while (0)
-#define local_irq_disable()	do { raw_local_irq_disable(); } while (0)
-#define local_irq_save(flags)	do { raw_local_irq_save(flags); } while (0)
-#define local_irq_restore(flags) do { raw_local_irq_restore(flags); } while (0)
-#define safe_halt()		do { raw_safe_halt(); } while (0)
-
-#endif /* CONFIG_TRACE_IRQFLAGS */
-
 #define local_save_flags(flags)	raw_local_save_flags(flags)
 
 /*
-- 
2.7.4


^ permalink raw reply related	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2021-05-28  0:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-24  2:51 [PATCH] irqflags: Remove the CONFIG_TRACE_IRQFLAGS Yejune Deng
2021-05-24 11:26 ` Mark Rutland
2021-05-25  7:03 ` [irqflags] 21db66c4ff: will-it-scale.per_process_ops -4.5% regression kernel test robot
2021-05-28  0:59   ` Steven Rostedt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).