Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b346715a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "sched/walt: Improve the scheduler"

parents e71cc820 ec2e3c8c
Loading
Loading
Loading
Loading
+5 −2
Original line number Diff line number Diff line
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 and
@@ -3371,9 +3371,12 @@ static void walt_init_once(void)
void walt_sched_init_rq(struct rq *rq)
{
	int j;
	static bool init;

	if (cpu_of(rq) == 0)
	if (!init) {
		walt_init_once();
		init = true;
	}

	cpumask_set_cpu(cpu_of(rq), &rq->freq_domain_cpumask);