提交 c6e1e7b5 编写于 作者: J Juergen Gross 提交者: Ingo Molnar

sched/core: Make 'sched_domain_topology' declaration static

The 'sched_domain_topology' variable is only used within kernel/sched/core.c.
Make it static.
Signed-off-by: NJuergen Gross <jgross@suse.com>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Mike Galbraith <efault@gmx.de>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/1442918939-9907-1-git-send-email-jgross@suse.comSigned-off-by: NIngo Molnar <mingo@kernel.org>
上级 269b26a5
...@@ -1127,8 +1127,6 @@ struct sched_domain_topology_level { ...@@ -1127,8 +1127,6 @@ struct sched_domain_topology_level {
#endif #endif
}; };
extern struct sched_domain_topology_level *sched_domain_topology;
extern void set_sched_topology(struct sched_domain_topology_level *tl); extern void set_sched_topology(struct sched_domain_topology_level *tl);
extern void wake_up_if_idle(int cpu); extern void wake_up_if_idle(int cpu);
......
...@@ -6445,7 +6445,8 @@ static struct sched_domain_topology_level default_topology[] = { ...@@ -6445,7 +6445,8 @@ static struct sched_domain_topology_level default_topology[] = {
{ NULL, }, { NULL, },
}; };
struct sched_domain_topology_level *sched_domain_topology = default_topology; static struct sched_domain_topology_level *sched_domain_topology =
default_topology;
#define for_each_sd_topology(tl) \ #define for_each_sd_topology(tl) \
for (tl = sched_domain_topology; tl->mask; tl++) for (tl = sched_domain_topology; tl->mask; tl++)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册