Skip to content

Commit 4007162

Browse files
committed
Merge branch 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip
Pull irq cleanups from Ingo Molnar: "This is a multi-arch cleanup series from Thomas Gleixner, which we kept to near the end of the merge window, to not interfere with architecture updates. This series (motivated by the -rt kernel) unifies more aspects of IRQ handling and generalizes PREEMPT_ACTIVE" * 'irq-urgent-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/tip: preempt: Make PREEMPT_ACTIVE generic sparc: Use preempt_schedule_irq ia64: Use preempt_schedule_irq m32r: Use preempt_schedule_irq hardirq: Make hardirq bits generic m68k: Simplify low level interrupt handling code genirq: Prevent spurious detection for unconditionally polled interrupts
2 parents 801a760 + 00d1a39 commit 4007162

50 files changed

Lines changed: 55 additions & 275 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎arch/alpha/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,8 +58,6 @@ register struct thread_info *__current_thread_info __asm__("$8");
5858
#define THREAD_SIZE_ORDER 1
5959
#define THREAD_SIZE (2*PAGE_SIZE)
6060

61-
#define PREEMPT_ACTIVE 0x40000000
62-
6361
/*
6462
* Thread information flags:
6563
* - these are process state flags and used from assembly

‎arch/arc/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -80,8 +80,6 @@ static inline __attribute_const__ struct thread_info *current_thread_info(void)
8080

8181
#endif /* !__ASSEMBLY__ */
8282

83-
#define PREEMPT_ACTIVE 0x10000000
84-
8583
/*
8684
* thread information flags
8785
* - these are process state flags that various assembly files may need to

‎arch/arm/include/asm/thread_info.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -140,12 +140,6 @@ extern int vfp_restore_user_hwstate(struct user_vfp __user *,
140140
struct user_vfp_exc __user *);
141141
#endif
142142

143-
/*
144-
* We use bit 30 of the preempt_count to indicate that kernel
145-
* preemption is occurring. See <asm/hardirq.h>.
146-
*/
147-
#define PREEMPT_ACTIVE 0x40000000
148-
149143
/*
150144
* thread information flags:
151145
* TIF_SYSCALL_TRACE - syscall trace active

‎arch/arm64/include/asm/thread_info.h‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,12 +88,6 @@ static inline struct thread_info *current_thread_info(void)
8888

8989
#endif
9090

91-
/*
92-
* We use bit 30 of the preempt_count to indicate that kernel
93-
* preemption is occurring. See <asm/hardirq.h>.
94-
*/
95-
#define PREEMPT_ACTIVE 0x40000000
96-
9791
/*
9892
* thread information flags:
9993
* TIF_SYSCALL_TRACE - syscall trace active

‎arch/avr32/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,6 @@ static inline struct thread_info *current_thread_info(void)
6666

6767
#endif /* !__ASSEMBLY__ */
6868

69-
#define PREEMPT_ACTIVE 0x40000000
70-
7169
/*
7270
* Thread information flags
7371
* - these are process state flags that various assembly files may need to access

‎arch/blackfin/include/asm/hardirq.h‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
extern void ack_bad_irq(unsigned int irq);
1313
#define ack_bad_irq ack_bad_irq
1414

15-
/* Define until common code gets sane defaults */
16-
#define HARDIRQ_BITS 9
17-
1815
#include <asm-generic/hardirq.h>
1916

2017
#endif

‎arch/blackfin/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ static inline struct thread_info *current_thread_info(void)
8888
#define TI_CPU 12
8989
#define TI_PREEMPT 16
9090

91-
#define PREEMPT_ACTIVE 0x4000000
92-
9391
/*
9492
* thread information flag bit numbers
9593
*/

‎arch/c6x/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ struct thread_info *current_thread_info(void)
8484
#define put_thread_info(ti) put_task_struct((ti)->task)
8585
#endif /* __ASSEMBLY__ */
8686

87-
#define PREEMPT_ACTIVE 0x10000000
88-
8987
/*
9088
* thread information flag bit numbers
9189
* - pending work-to-be-done flags are in LSW

‎arch/cris/include/asm/hardirq.h‎

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,6 @@
22
#define __ASM_HARDIRQ_H
33

44
#include <asm/irq.h>
5-
6-
#define HARDIRQ_BITS 8
7-
8-
/*
9-
* The hardirq mask has to be large enough to have
10-
* space for potentially all IRQ sources in the system
11-
* nesting on a single CPU:
12-
*/
13-
#if (1 << HARDIRQ_BITS) < NR_IRQS
14-
# error HARDIRQ_BITS is too low!
15-
#endif
16-
175
#include <asm-generic/hardirq.h>
186

197
#endif /* __ASM_HARDIRQ_H */

‎arch/cris/include/asm/thread_info.h‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,8 +44,6 @@ struct thread_info {
4444

4545
#endif
4646

47-
#define PREEMPT_ACTIVE 0x10000000
48-
4947
/*
5048
* macros/functions for gaining access to the thread information structure
5149
*/

0 commit comments

Comments
 (0)