summaryrefslogtreecommitdiff
path: root/arch/um/include/asm/irqflags.h
diff options
context:
space:
mode:
authorJohannes Berg <johannes.berg@intel.com>2021-03-05 15:19:54 +0300
committerRichard Weinberger <richard@nod.at>2021-06-17 22:44:51 +0300
commitfbb42e7fe2c4962cb51776fff5462e6264d9716b (patch)
treea9274d662335cd9fd04711e78a586107b7cc3672 /arch/um/include/asm/irqflags.h
parent2efea7dfaa67eba020e88bcb07a10030de63dfa5 (diff)
downloadlinux-fbb42e7fe2c4962cb51776fff5462e6264d9716b.tar.xz
um: export signals_enabled directly
Use signals_enabled instead of always jumping through a function call to read it, there's not much point in that. Signed-off-by: Johannes Berg <johannes.berg@intel.com> Signed-off-by: Richard Weinberger <richard@nod.at>
Diffstat (limited to 'arch/um/include/asm/irqflags.h')
-rw-r--r--arch/um/include/asm/irqflags.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/um/include/asm/irqflags.h b/arch/um/include/asm/irqflags.h
index 0642ad9035d1..dab5744e9253 100644
--- a/arch/um/include/asm/irqflags.h
+++ b/arch/um/include/asm/irqflags.h
@@ -2,15 +2,15 @@
#ifndef __UM_IRQFLAGS_H
#define __UM_IRQFLAGS_H
-extern int get_signals(void);
-extern int set_signals(int enable);
-extern void block_signals(void);
-extern void unblock_signals(void);
+extern int signals_enabled;
+int set_signals(int enable);
+void block_signals(void);
+void unblock_signals(void);
#define arch_local_save_flags arch_local_save_flags
static inline unsigned long arch_local_save_flags(void)
{
- return get_signals();
+ return signals_enabled;
}
#define arch_local_irq_restore arch_local_irq_restore