diff options
| author | Joonwoo Park <joonwoop@codeaurora.org> | 2016-06-17 14:34:09 -0700 |
|---|---|---|
| committer | Kyle Yan <kyan@codeaurora.org> | 2016-06-21 15:10:22 -0700 |
| commit | c07e88c80f44d27752ca9c4ea36840742c835027 (patch) | |
| tree | 9cef3d573d4b66be2e9145c8d47a6e51a0440cf1 | |
| parent | dcd111c96e4ddf88f5934f4fca0b12a599d3d5c0 (diff) | |
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: Joonwoo Park <joonwoop@codeaurora.org>
| -rw-r--r-- | include/trace/events/sched.h | 6 | ||||
| -rw-r--r-- | kernel/sched/core.c | 2 | ||||
| -rw-r--r-- | kernel/sched/sched.h | 2 |
3 files changed, 4 insertions, 6 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 81415b78ef39..bd17f241d4a5 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -314,8 +314,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; @@ -380,8 +379,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); ), diff --git a/kernel/sched/core.c b/kernel/sched/core.c index 6736e2d7cbaf..839925a3da7e 100644 --- a/kernel/sched/core.c +++ b/kernel/sched/core.c @@ -3302,7 +3302,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; diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index ff2161cc9fc0..7db4d59d5ec3 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1150,7 +1150,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); } |
