Commit 339bf945 authored by Robert Love's avatar Robert Love Committed by Linus Torvalds

[PATCH] no need for kernel_flag on UP

This is a minor cleanup.  We currently define and declare the BKL's
kernel_flag spinlock on either SMP or PREEMPT, which means a UP+PREEMPT
machine gets it.

We only need the actual lock on SMP.
parent c7650146
......@@ -483,8 +483,6 @@ EXPORT_SYMBOL(task_nice);
EXPORT_SYMBOL_GPL(idle_cpu);
#if CONFIG_SMP
EXPORT_SYMBOL_GPL(set_cpus_allowed);
#endif
#if CONFIG_SMP || CONFIG_PREEMPT
EXPORT_SYMBOL(kernel_flag);
#endif
EXPORT_SYMBOL(jiffies);
......
......@@ -2426,7 +2426,7 @@ __init int migration_init(void)
#endif
#if CONFIG_SMP || CONFIG_PREEMPT
#if CONFIG_SMP
/*
* The 'big kernel 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