Skip to content

Commit

Permalink
sched: Remove obsolete comment in sched_init()
Browse files Browse the repository at this point in the history
Remove the comment about calling alloc_bootmem() as it is not
called here since commit 36b7b6d.

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>
  • Loading branch information
Jayson R. King authored and Ingo Molnar committed Oct 5, 2009
1 parent d01d482 commit cf82ff7
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions kernel/sched.c
Original file line number Diff line number Diff line change
Expand Up @@ -9322,10 +9322,6 @@ void __init sched_init(void)
#ifdef CONFIG_CPUMASK_OFFSTACK
alloc_size += num_possible_cpus() * cpumask_size();
#endif
/*
* As sched_init() is called before page_alloc is setup,
* we use alloc_bootmem().
*/
if (alloc_size) {
ptr = (unsigned long)kzalloc(alloc_size, GFP_NOWAIT);

Expand Down

0 comments on commit cf82ff7

Please sign in to comment.