perfcounters: clean up rotate_percpu
PATCH v2 1/1 perfcounters: clean up rotate_percpu
Ingo implemented rotate function at 235c7fc7c500e4fd1700c4ad01b5612bcdc1b449. I think he want to implement rotate_percpu but he don't implement it yet.
If we need not it immediately,
It would be better to remove it until we will need it again.
--- kernel/perf_counter.c | 10 ---------- 1 files changed, 0 insertions(+), 10 deletions(-)
kernel/perf_counter.c +0 -10
@@ -970,20 +970,10 @@ static void rotate_ctx(struct perf_counter_context *ctx)void perf_counter_task_tick (struct task_struct *curr,int cpu) { -struct perf_cpu_context *cpuctx = &per_cpu (perf_cpu_context, cpu);struct perf_counter_context *ctx = &curr->perf_counter_ctx; -const int rotate_percpu =0 ; -if (rotate_percpu) -perf_counter_cpu_sched_out (cpuctx);perf_counter_task_sched_out (curr, cpu); - -if (rotate_percpu) -rotate_ctx (&cpuctx->ctx);rotate_ctx (ctx); - -if (rotate_percpu) -perf_counter_cpu_sched_in (cpuctx, cpu);perf_counter_task_sched_in (curr, cpu); }
Signature · 6 lines
1.5.4.3 -- Kinds Regards MinChan Kim
Quoted 5 lines · MinChan Kim
Ingo implemented rotate function at
235c7fc7c500e4fd1700c4ad01b5612bcdc1b449. I think he want to implementrotate_percpubut he don't implement it yet.If we need not it immediately,
It would be better to remove it until we will need it again.
It seems to me, a more constructive patch would be to implement it for him.
Quoted 9 lines · Peter Zijlstra
Quoted 5 lines · MinChan Kim
Ingo implemented rotate function at
235c7fc7c500e4fd1700c4ad01b5612bcdc1b449. I think he want to implementrotate_percpubut he don't implement it yet.If we need not it immediately,
It would be better to remove it until we will need it again.It seems to me, a more constructive patch would be to implement it for him.
If it is his intention, I don't care about this patch commit. :)
Signature · 2 lines
Kinds regards, MinChan Kim