[PATCH] perf_counter: call atomic64_set for counter->count

From: Paul Mackerras
Date: Mon May 11 2009 - 01:50:41 EST


This fixes a compile warning where we are calling
atomic_set(&counter->count). Since counter->count is an atomic64_t,
we have to use atomic64_set.

[ Impact: fix type mismatch bug ]

Signed-off-by: Paul Mackerras <paulus@xxxxxxxxx>
---

diff --git a/kernel/perf_counter.c b/kernel/perf_counter.c
index 7373b96..5ea0240 100644
--- a/kernel/perf_counter.c
+++ b/kernel/perf_counter.c
@@ -1281,7 +1281,7 @@ static unsigned int perf_poll(struct file *file, poll_table *wait)
static void perf_counter_reset(struct perf_counter *counter)
{
(void)perf_counter_read(counter);
- atomic_set(&counter->count, 0);
+ atomic64_set(&counter->count, 0);
perf_counter_update_userpage(counter);
}

--
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/