diff options
author | Johannes Berg <johannes.berg@intel.com> | 2021-03-05 15:19:54 +0300 |
---|---|---|
committer | Richard Weinberger <richard@nod.at> | 2021-06-17 22:44:51 +0300 |
commit | fbb42e7fe2c4962cb51776fff5462e6264d9716b (patch) | |
tree | a9274d662335cd9fd04711e78a586107b7cc3672 /arch/um/os-Linux | |
parent | 2efea7dfaa67eba020e88bcb07a10030de63dfa5 (diff) | |
download | linux-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/os-Linux')
-rw-r--r-- | arch/um/os-Linux/signal.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/arch/um/os-Linux/signal.c b/arch/um/os-Linux/signal.c index 96f511d1aabe..8c9d162e6c51 100644 --- a/arch/um/os-Linux/signal.c +++ b/arch/um/os-Linux/signal.c @@ -62,7 +62,7 @@ static void sig_handler_common(int sig, struct siginfo *si, mcontext_t *mc) #define SIGALRM_BIT 1 #define SIGALRM_MASK (1 << SIGALRM_BIT) -static int signals_enabled; +int signals_enabled; static unsigned int signals_pending; static unsigned int signals_active = 0; @@ -334,11 +334,6 @@ void unblock_signals(void) } } -int get_signals(void) -{ - return signals_enabled; -} - int set_signals(int enable) { int ret; |