提交 b3e2fd9c 编写于 作者: R Roman Zippel 提交者: Linus Torvalds

lockdep: Add missing disable/enable irq variant

Add missing disable/enable irq variant
Signed-off-by: NRoman Zippel <zippel@linux-m68k.org>
Signed-off-by: NGeert Uytterhoeven <geert@linux-m68k.org>
Signed-off-by: NLinus Torvalds <torvalds@linux-foundation.org>
上级 39ad2cb3
...@@ -185,10 +185,14 @@ static inline int disable_irq_wake(unsigned int irq) ...@@ -185,10 +185,14 @@ static inline int disable_irq_wake(unsigned int irq)
* validator need to define the methods below in their asm/irq.h * validator need to define the methods below in their asm/irq.h
* files, under an #ifdef CONFIG_LOCKDEP section. * files, under an #ifdef CONFIG_LOCKDEP section.
*/ */
# ifndef CONFIG_LOCKDEP #ifndef CONFIG_LOCKDEP
# define disable_irq_nosync_lockdep(irq) disable_irq_nosync(irq) # define disable_irq_nosync_lockdep(irq) disable_irq_nosync(irq)
# define disable_irq_nosync_lockdep_irqsave(irq, flags) \
disable_irq_nosync(irq)
# define disable_irq_lockdep(irq) disable_irq(irq) # define disable_irq_lockdep(irq) disable_irq(irq)
# define enable_irq_lockdep(irq) enable_irq(irq) # define enable_irq_lockdep(irq) enable_irq(irq)
# define enable_irq_lockdep_irqrestore(irq, flags) \
enable_irq(irq)
# endif # endif
#endif /* CONFIG_GENERIC_HARDIRQS */ #endif /* CONFIG_GENERIC_HARDIRQS */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册