From: Paul Mackerras Date: Sat, 13 Jun 2009 07:06:50 +0000 (+1000) Subject: perf_counter: Fix atomic_set vs. atomic64_t type mismatch X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=87847b8f26cc7176ec9b239898dc7ce47a94e1a6;p=linux-beck.git perf_counter: Fix atomic_set vs. atomic64_t type mismatch Using atomic_set on an atomic64_t variable gives a compiler warning on powerpc, and won't give the desired result at runtime. This fixes an instance of this error in the perf_counter code. Signed-off-by: Paul Mackerras Cc: Peter Zijlstra LKML-Reference: <18995.20490.979429.244883@cargo.ozlabs.ibm.com> Signed-off-by: Ingo Molnar --- diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c index 29b685f551aa..8d14a733f222 100644 --- a/kernel/perf_counter.c +++ b/kernel/perf_counter.c @@ -1283,7 +1283,7 @@ static void perf_ctx_adjust_freq(struct perf_counter_context *ctx) if (!interrupts) { perf_disable(); counter->pmu->disable(counter); - atomic_set(&hwc->period_left, 0); + atomic64_set(&hwc->period_left, 0); counter->pmu->enable(counter); perf_enable(); }