mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-11-19 08:05:27 +08:00
sched: fix section mismatch
init_rootdomain() calls alloc_bootmem_cpumask_var() at system boot, so does cpupri_init(). Signed-off-by: Li Zefan <lizf@cn.fujitsu.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
This commit is contained in:
parent
0c910d2895
commit
db2f59c8c9
@ -6957,7 +6957,7 @@ static void rq_attach_root(struct rq *rq, struct root_domain *rd)
|
||||
spin_unlock_irqrestore(&rq->lock, flags);
|
||||
}
|
||||
|
||||
static int init_rootdomain(struct root_domain *rd, bool bootmem)
|
||||
static int __init_refok init_rootdomain(struct root_domain *rd, bool bootmem)
|
||||
{
|
||||
memset(rd, 0, sizeof(*rd));
|
||||
|
||||
|
@ -151,7 +151,7 @@ void cpupri_set(struct cpupri *cp, int cpu, int newpri)
|
||||
*
|
||||
* Returns: -ENOMEM if memory fails.
|
||||
*/
|
||||
int cpupri_init(struct cpupri *cp, bool bootmem)
|
||||
int __init_refok cpupri_init(struct cpupri *cp, bool bootmem)
|
||||
{
|
||||
int i;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user