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

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

Merge "sched/walt: Fix kernel panic issue by uninitialized data"

parents 67dc2557 b83b462e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (c) 2016-2019, The Linux Foundation. All rights reserved.
 * Copyright (c) 2016-2020, The Linux Foundation. All rights reserved.
 */

#include <linux/syscore_ops.h>
@@ -2059,12 +2059,12 @@ update_task_rq_cpu_cycles(struct task_struct *p, struct rq *rq, int event,
		rq->task_exec_scale = DIV64_U64_ROUNDUP(cycles_delta *
				topology_get_cpu_scale(NULL, cpu),
				time_delta * rq->cluster->max_possible_freq);
		trace_sched_get_task_cpu_cycles(cpu, event,
				cycles_delta, time_delta, p);
	}

	p->cpu_cycles = cur_cycles;

	trace_sched_get_task_cpu_cycles(cpu, event,
					cycles_delta, time_delta, p);
}

static inline void run_walt_irq_work(u64 old_window_start, struct rq *rq)