Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1436199
| From | Thomas Gleixner <tglx@linutronix.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [patch 4 13/22] timer: Reduce the CPU index space to 256k |
| Date | 2016-07-04 12:00 +0200 |
| Message-ID | <rR8Pv-419-21@gated-at.bofh.it> (permalink) |
| References | <rR8Pv-419-7@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
We want to store the array index in the flags space. 256k CPUs should be
enough for a while.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Frederic Weisbecker <fweisbec@gmail.com>
---
include/linux/timer.h | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
--- a/include/linux/timer.h
+++ b/include/linux/timer.h
@@ -58,12 +58,12 @@ struct timer_list {
* workqueue locking issues. It's not meant for executing random crap
* with interrupts disabled. Abuse is monitored!
*/
-#define TIMER_CPUMASK 0x0007FFFF
-#define TIMER_MIGRATING 0x00080000
+#define TIMER_CPUMASK 0x0003FFFF
+#define TIMER_MIGRATING 0x00040000
#define TIMER_BASEMASK (TIMER_CPUMASK | TIMER_MIGRATING)
-#define TIMER_DEFERRABLE 0x00100000
-#define TIMER_PINNED 0x00200000
-#define TIMER_IRQSAFE 0x00400000
+#define TIMER_DEFERRABLE 0x00080000
+#define TIMER_PINNED 0x00100000
+#define TIMER_IRQSAFE 0x00200000
#define __TIMER_INITIALIZER(_function, _expires, _data, _flags) { \
.entry = { .next = TIMER_ENTRY_STATIC }, \
Back to linux.kernel | Previous | Next — Next in thread | Find similar | Unroll thread
[patch 4 13/22] timer: Reduce the CPU index space to 256k Thomas Gleixner <tglx@linutronix.de> - 2016-07-04 12:00 +0200 [tip:timers/core] timers: Reduce the CPU index space to 256k tip-bot for Thomas Gleixner <tipbot@zytor.com> - 2016-07-07 10:50 +0200
csiph-web