sched: Remove obsolete comment in sched_init()
Remove the comment about calling alloc_bootmem() as it is not
called here since commit 36b7b6d465
.
Signed-off-by: Jayson R. King <dev@jaysonking.com>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Jiri Kosina <trivial@kernel.org>
LKML-Reference: <4AC9C8A6.6010209@jaysonking.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
committed by
Ingo Molnar
parent
d01d482785
commit
cf82ff7ea7
@@ -9322,10 +9322,6 @@ void __init sched_init(void)
|
|||||||
#ifdef CONFIG_CPUMASK_OFFSTACK
|
#ifdef CONFIG_CPUMASK_OFFSTACK
|
||||||
alloc_size += num_possible_cpus() * cpumask_size();
|
alloc_size += num_possible_cpus() * cpumask_size();
|
||||||
#endif
|
#endif
|
||||||
/*
|
|
||||||
* As sched_init() is called before page_alloc is setup,
|
|
||||||
* we use alloc_bootmem().
|
|
||||||
*/
|
|
||||||
if (alloc_size) {
|
if (alloc_size) {
|
||||||
ptr = (unsigned long)kzalloc(alloc_size, GFP_NOWAIT);
|
ptr = (unsigned long)kzalloc(alloc_size, GFP_NOWAIT);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user