[PATCH 7/8] core-small: Shrink timer lists

2005-01-21 Thread Matt Mackall
CONFIG_CORE_SMALL reduce timer list hashes

Signed-off-by: Matt Mackall <[EMAIL PROTECTED]>

Index: tiny-queue/kernel/timer.c
===
--- tiny-queue.orig/kernel/timer.c  2005-01-21 09:59:50.0 -0800
+++ tiny-queue/kernel/timer.c   2005-01-21 15:31:58.0 -0800
@@ -50,8 +50,14 @@
 /*
  * per-CPU timer vector definitions:
  */
+
+#ifdef CONFIG_CORE_SMALL
+#define TVN_BITS 4
+#define TVR_BITS 6
+#else
 #define TVN_BITS 6
 #define TVR_BITS 8
+#endif
 #define TVN_SIZE (1 << TVN_BITS)
 #define TVR_SIZE (1 << TVR_BITS)
 #define TVN_MASK (TVN_SIZE - 1)
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/


[PATCH 7/8] core-small: Shrink timer lists

2005-01-21 Thread Matt Mackall
CONFIG_CORE_SMALL reduce timer list hashes

Signed-off-by: Matt Mackall [EMAIL PROTECTED]

Index: tiny-queue/kernel/timer.c
===
--- tiny-queue.orig/kernel/timer.c  2005-01-21 09:59:50.0 -0800
+++ tiny-queue/kernel/timer.c   2005-01-21 15:31:58.0 -0800
@@ -50,8 +50,14 @@
 /*
  * per-CPU timer vector definitions:
  */
+
+#ifdef CONFIG_CORE_SMALL
+#define TVN_BITS 4
+#define TVR_BITS 6
+#else
 #define TVN_BITS 6
 #define TVR_BITS 8
+#endif
 #define TVN_SIZE (1  TVN_BITS)
 #define TVR_SIZE (1  TVR_BITS)
 #define TVN_MASK (TVN_SIZE - 1)
-
To unsubscribe from this list: send the line unsubscribe linux-kernel in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/