powerpc/perf/hv-24x7: Rename hv_24x7_event_update
authorSukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Tue, 31 Mar 2015 01:53:43 +0000 (18:53 -0700)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 11 Apr 2015 10:49:24 +0000 (20:49 +1000)
For consistency with the pmu operation ->read() and with other
pmus, rename hv_24x7_event_update() to hv_24x7_event_read().

Signed-off-by: Sukadev Bhattiprolu <sukadev@linux.vnet.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
arch/powerpc/perf/hv-24x7.c

index a58a1dfb15e2d2d7dace790956aee6b7eee3749a..e78b1272aa0e248c41c0deb9e748a82d7c72f73a 100644 (file)
@@ -1146,7 +1146,7 @@ static u64 h_24x7_get_value(struct perf_event *event)
        return ct;
 }
 
-static void h_24x7_event_update(struct perf_event *event)
+static void h_24x7_event_read(struct perf_event *event)
 {
        s64 prev;
        u64 now;
@@ -1163,7 +1163,7 @@ static void h_24x7_event_start(struct perf_event *event, int flags)
 
 static void h_24x7_event_stop(struct perf_event *event, int flags)
 {
-       h_24x7_event_update(event);
+       h_24x7_event_read(event);
 }
 
 static int h_24x7_event_add(struct perf_event *event, int flags)
@@ -1184,7 +1184,7 @@ static struct pmu h_24x7_pmu = {
        .del         = h_24x7_event_stop,
        .start       = h_24x7_event_start,
        .stop        = h_24x7_event_stop,
-       .read        = h_24x7_event_update,
+       .read        = h_24x7_event_read,
 };
 
 static int hv_24x7_init(void)