Skip to content

Commit b0d6e2d

Browse files
KAGA-KOKOIngo Molnar
authored andcommitted
timers: Reduce the CPU index space to 256k
We want to store the array index in the flags space. 256k CPUs should be enough for a while. Signed-off-by: Thomas Gleixner <[email protected]> Reviewed-by: Frederic Weisbecker <[email protected]> Cc: Arjan van de Ven <[email protected]> Cc: Chris Mason <[email protected]> Cc: George Spelvin <[email protected]> Cc: Josh Triplett <[email protected]> Cc: Len Brown <[email protected]> Cc: Linus Torvalds <[email protected]> Cc: Paul McKenney <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Rik van Riel <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Ingo Molnar <[email protected]>
1 parent 494af3e commit b0d6e2d

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/linux/timer.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -58,12 +58,12 @@ struct timer_list {
5858
* workqueue locking issues. It's not meant for executing random crap
5959
* with interrupts disabled. Abuse is monitored!
6060
*/
61-
#define TIMER_CPUMASK 0x0007FFFF
62-
#define TIMER_MIGRATING 0x00080000
61+
#define TIMER_CPUMASK 0x0003FFFF
62+
#define TIMER_MIGRATING 0x00040000
6363
#define TIMER_BASEMASK (TIMER_CPUMASK | TIMER_MIGRATING)
64-
#define TIMER_DEFERRABLE 0x00100000
65-
#define TIMER_PINNED 0x00200000
66-
#define TIMER_IRQSAFE 0x00400000
64+
#define TIMER_DEFERRABLE 0x00080000
65+
#define TIMER_PINNED 0x00100000
66+
#define TIMER_IRQSAFE 0x00200000
6767

6868
#define __TIMER_INITIALIZER(_function, _expires, _data, _flags) { \
6969
.entry = { .next = TIMER_ENTRY_STATIC }, \

0 commit comments

Comments
 (0)