[PATCH 6/8] base-small: shrink futex queues

From: Matt Mackall
Date: Mon Jan 31 2005 - 03:22:06 EST


CONFIG_BASE_SMALL reduce futex hash table

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

Index: tq/kernel/futex.c
===================================================================
--- tq.orig/kernel/futex.c 2005-01-25 09:26:18.000000000 -0800
+++ tq/kernel/futex.c 2005-01-26 13:11:43.000000000 -0800
@@ -40,7 +40,7 @@
#include <linux/pagemap.h>
#include <linux/syscalls.h>

-#define FUTEX_HASHBITS 8
+#define FUTEX_HASHBITS (CONFIG_BASE_SMALL ? 4 : 8)

/*
* 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/