diff options
-rw-r--r-- | arch/m68k/include/asm/signal.h | 9 | ||||
-rw-r--r-- | arch/x86/include/asm/signal.h | 6 | ||||
-rw-r--r-- | include/linux/signal.h | 5 |
3 files changed, 0 insertions, 20 deletions
diff --git a/arch/m68k/include/asm/signal.h b/arch/m68k/include/asm/signal.h index 214320b50384..8c8ce5e1ee0e 100644 --- a/arch/m68k/include/asm/signal.h +++ b/arch/m68k/include/asm/signal.h | |||
@@ -60,15 +60,6 @@ static inline int __gen_sigismember(sigset_t *set, int _sig) | |||
60 | __const_sigismember(set,sig) : \ | 60 | __const_sigismember(set,sig) : \ |
61 | __gen_sigismember(set,sig)) | 61 | __gen_sigismember(set,sig)) |
62 | 62 | ||
63 | static inline int sigfindinword(unsigned long word) | ||
64 | { | ||
65 | asm ("bfffo %1{#0,#0},%0" | ||
66 | : "=d" (word) | ||
67 | : "d" (word & -word) | ||
68 | : "cc"); | ||
69 | return word ^ 31; | ||
70 | } | ||
71 | |||
72 | #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */ | 63 | #endif /* !CONFIG_CPU_HAS_NO_BITFIELDS */ |
73 | 64 | ||
74 | #ifndef __uClinux__ | 65 | #ifndef __uClinux__ |
diff --git a/arch/x86/include/asm/signal.h b/arch/x86/include/asm/signal.h index 35e67a457182..31eab867e6d3 100644 --- a/arch/x86/include/asm/signal.h +++ b/arch/x86/include/asm/signal.h | |||
@@ -92,12 +92,6 @@ static inline int __gen_sigismember(sigset_t *set, int _sig) | |||
92 | ? __const_sigismember((set), (sig)) \ | 92 | ? __const_sigismember((set), (sig)) \ |
93 | : __gen_sigismember((set), (sig))) | 93 | : __gen_sigismember((set), (sig))) |
94 | 94 | ||
95 | static inline int sigfindinword(unsigned long word) | ||
96 | { | ||
97 | asm("bsfl %1,%0" : "=r"(word) : "rm"(word) : "cc"); | ||
98 | return word; | ||
99 | } | ||
100 | |||
101 | struct pt_regs; | 95 | struct pt_regs; |
102 | 96 | ||
103 | #else /* __i386__ */ | 97 | #else /* __i386__ */ |
diff --git a/include/linux/signal.h b/include/linux/signal.h index 2ac423bdb676..ae744c314630 100644 --- a/include/linux/signal.h +++ b/include/linux/signal.h | |||
@@ -63,11 +63,6 @@ static inline int sigismember(sigset_t *set, int _sig) | |||
63 | return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); | 63 | return 1 & (set->sig[sig / _NSIG_BPW] >> (sig % _NSIG_BPW)); |
64 | } | 64 | } |
65 | 65 | ||
66 | static inline int sigfindinword(unsigned long word) | ||
67 | { | ||
68 | return ffz(~word); | ||
69 | } | ||
70 | |||
71 | #endif /* __HAVE_ARCH_SIG_BITOPS */ | 66 | #endif /* __HAVE_ARCH_SIG_BITOPS */ |
72 | 67 | ||
73 | static inline int sigisemptyset(sigset_t *set) | 68 | static inline int sigisemptyset(sigset_t *set) |