Commit ebb6bf1e authored by David S. Miller's avatar David S. Miller

[KERNEL]: Do not export set_cpus_allowed twice, and only if CONFIG_SMP.

parent 3a6f68b5
...@@ -352,9 +352,6 @@ EXPORT_SYMBOL_GPL(__wake_up_sync); /* internal use only */ ...@@ -352,9 +352,6 @@ EXPORT_SYMBOL_GPL(__wake_up_sync); /* internal use only */
#endif #endif
EXPORT_SYMBOL(schedule_timeout); EXPORT_SYMBOL(schedule_timeout);
EXPORT_SYMBOL_GPL(idle_cpu); EXPORT_SYMBOL_GPL(idle_cpu);
#ifdef CONFIG_SMP
EXPORT_SYMBOL_GPL(set_cpus_allowed);
#endif
#if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT) #if defined(CONFIG_SMP) || defined(CONFIG_PREEMPT)
EXPORT_SYMBOL(kernel_flag); EXPORT_SYMBOL(kernel_flag);
#endif #endif
......
...@@ -2574,6 +2574,7 @@ int set_cpus_allowed(task_t *p, cpumask_t new_mask) ...@@ -2574,6 +2574,7 @@ int set_cpus_allowed(task_t *p, cpumask_t new_mask)
wait_for_completion(&req.done); wait_for_completion(&req.done);
return 0; return 0;
} }
EXPORT_SYMBOL(set_cpus_allowed);
/* Move (not current) task off this cpu, onto dest cpu. */ /* Move (not current) task off this cpu, onto dest cpu. */
static void move_task_away(struct task_struct *p, int dest_cpu) static void move_task_away(struct task_struct *p, int dest_cpu)
...@@ -2874,7 +2875,6 @@ EXPORT_SYMBOL(interruptible_sleep_on); ...@@ -2874,7 +2875,6 @@ EXPORT_SYMBOL(interruptible_sleep_on);
EXPORT_SYMBOL(interruptible_sleep_on_timeout); EXPORT_SYMBOL(interruptible_sleep_on_timeout);
EXPORT_SYMBOL(io_schedule); EXPORT_SYMBOL(io_schedule);
EXPORT_SYMBOL(schedule); EXPORT_SYMBOL(schedule);
EXPORT_SYMBOL(set_cpus_allowed);
EXPORT_SYMBOL(set_user_nice); EXPORT_SYMBOL(set_user_nice);
EXPORT_SYMBOL(sleep_on); EXPORT_SYMBOL(sleep_on);
EXPORT_SYMBOL(sleep_on_timeout); EXPORT_SYMBOL(sleep_on_timeout);
......
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