Re: [PATCH] perfcounters: clean up rotate_percpu

From: MinChan Kim
Date: Wed Feb 18 2009 - 07:27:03 EST


I missed one thing. so I will resend next version.

On Wed, Feb 18, 2009 at 9:16 PM, MinChan Kim <minchan.kim@xxxxxxxxx> wrote:
> 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.
>
> Signed-off-by: MinChan Kim <minchan.kim@xxxxxxxxx>
>
> ---
> kernel/perf_counter.c | 9 ---------
> 1 files changed, 0 insertions(+), 9 deletions(-)
>
> diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
> index ad62965..007b219 100644
> --- a/kernel/perf_counter.c
> +++ b/kernel/perf_counter.c
> @@ -972,18 +972,9 @@ 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);
> }
>
> --
> 1.5.4.3
>
>
> --
> Kinds Regards
> MinChan Kim
>



--
Kinds regards,
MinChan Kim
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/