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

Commit 7d2dfd06 authored by Joonwoo Park's avatar Joonwoo Park
Browse files

sched: remove unused parameter cpu from cpu_cycles_to_freq()



The function parameter cpu isn't used anymore by cpu_cycles_to_freq().
So remove it.

Change-Id: Ide19321206dacb88fedca97e1b689d740f872866
Signed-off-by: default avatarJoonwoo Park <joonwoop@codeaurora.org>
parent 91ac727e
Loading
Loading
Loading
Loading
+2 −4
Original line number Diff line number Diff line
@@ -317,8 +317,7 @@ TRACE_EVENT(sched_update_task_ravg,
		__entry->evt            = evt;
		__entry->cpu            = rq->cpu;
		__entry->cur_pid        = rq->curr->pid;
		__entry->cur_freq       = cpu_cycles_to_freq(rq->cpu, cycles,
							     exec_time);
		__entry->cur_freq       = cpu_cycles_to_freq(cycles, exec_time);
		memcpy(__entry->comm, p->comm, TASK_COMM_LEN);
		__entry->pid            = p->pid;
		__entry->mark_start     = p->ravg.mark_start;
@@ -383,8 +382,7 @@ TRACE_EVENT(sched_get_task_cpu_cycles,
		__entry->event 		= event;
		__entry->cycles 	= cycles;
		__entry->exec_time 	= exec_time;
		__entry->freq 		= cpu_cycles_to_freq(cpu, cycles,
							     exec_time);
		__entry->freq		= cpu_cycles_to_freq(cycles, exec_time);
		__entry->legacy_freq 	= cpu_cur_freq(cpu);
	),

+1 −1
Original line number Diff line number Diff line
@@ -3307,7 +3307,7 @@ void sched_get_cpus_busy(struct sched_load *busy,

		update_task_ravg(rq->curr, rq, TASK_UPDATE, sched_ktime_clock(),
				 0);
		cur_freq[i] = cpu_cycles_to_freq(i, rq->cc.cycles, rq->cc.time);
		cur_freq[i] = cpu_cycles_to_freq(rq->cc.cycles, rq->cc.time);

		load[i] = rq->old_busy_time = rq->prev_runnable_sum;
		nload[i] = rq->nt_prev_runnable_sum;
+1 −1
Original line number Diff line number Diff line
@@ -1061,7 +1061,7 @@ static inline int cpu_max_power_cost(int cpu)
	return cpu_rq(cpu)->cluster->max_power_cost;
}

static inline u32 cpu_cycles_to_freq(int cpu, u64 cycles, u32 period)
static inline u32 cpu_cycles_to_freq(u64 cycles, u32 period)
{
	return div64_u64(cycles, period);
}