Commit 6843d7f3 authored by Matt Mackall's avatar Matt Mackall Committed by Linus Torvalds

[PATCH] base-small: shrink chrdevs hash

CONFIG_BASE_SMALL degrade char dev hash table to linked list
Signed-off-by: default avatarMatt Mackall <mpm@selenic.com>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent eef2fd1d
......@@ -26,7 +26,8 @@
static struct kobj_map *cdev_map;
#define MAX_PROBE_HASH 255 /* random */
/* degrade to linked list for small systems */
#define MAX_PROBE_HASH (CONFIG_BASE_SMALL ? 1 : 255)
static DEFINE_RWLOCK(chrdevs_lock);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment