[PATCH 6/8] core-small: Shrink futex queue hash

From: Matt Mackall
Date: Fri Jan 21 2005 - 20:00:05 EST


CONFIG_CORE_SMALL reduce futex hash table

Signed-off-by: Matt Mackall <mpm@xxxxxxxxxxx>

Index: tiny-new/kernel/futex.c
===================================================================
--- tiny-new.orig/kernel/futex.c 2004-11-17 00:04:03.000000000 -0800
+++ tiny-new/kernel/futex.c 2004-11-17 10:30:20.749824672 -0800
@@ -40,7 +40,11 @@
#include <linux/pagemap.h>
#include <linux/syscalls.h>

+#ifdef CONFIG_CORE_SMALL
+#define FUTEX_HASHBITS 4
+#else
#define FUTEX_HASHBITS 8
+#endif

/*
* Futexes are matched on equal values of this key.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/