mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
kernel/kprobes.c: don't pad kretprobe_table_locks[] on uniprocessor builds
We only need the cacheline padding on SMP kernels. Saves 6k: text data bss dec hex filename 5713 388 8840 14941 3a5d kernel/kprobes.o 5713 388 2632 8733 221d kernel/kprobes.o Acked-by: Masami Hiramatsu <mhiramat@redhat.com> Cc: Ananth N Mavinakayanahalli <ananth@in.ibm.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
084c304980
commit
7e036d040a
1 changed files with 1 additions and 1 deletions
|
@ -72,7 +72,7 @@ static bool kprobe_enabled;
|
||||||
DEFINE_MUTEX(kprobe_mutex); /* Protects kprobe_table */
|
DEFINE_MUTEX(kprobe_mutex); /* Protects kprobe_table */
|
||||||
static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
|
static DEFINE_PER_CPU(struct kprobe *, kprobe_instance) = NULL;
|
||||||
static struct {
|
static struct {
|
||||||
spinlock_t lock ____cacheline_aligned;
|
spinlock_t lock ____cacheline_aligned_in_smp;
|
||||||
} kretprobe_table_locks[KPROBE_TABLE_SIZE];
|
} kretprobe_table_locks[KPROBE_TABLE_SIZE];
|
||||||
|
|
||||||
static spinlock_t *kretprobe_table_lock_ptr(unsigned long hash)
|
static spinlock_t *kretprobe_table_lock_ptr(unsigned long hash)
|
||||||
|
|
Loading…
Reference in a new issue