Skip to content

Commit 0cceeab

Browse files
Thomas Richterhcahca
authored andcommitted
s390/cpumf: beautify if-then-else indentation
Beautify if-then-else indentation to match coding guideline. Also use shorter pointer notation hwc instead of event->hw. Signed-off-by: Thomas Richter <[email protected]> Acked-by : Sumanth Korikkar <[email protected]> Signed-off-by: Heiko Carstens <[email protected]>
1 parent f53a636 commit 0cceeab

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

arch/s390/kernel/perf_cpum_cf.c

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,7 @@ static int __hw_perf_event_init(struct perf_event *event, unsigned int type)
230230
/* No support for kernel space counters only */
231231
} else if (!attr->exclude_kernel && attr->exclude_user) {
232232
return -EOPNOTSUPP;
233-
234-
/* Count user and kernel space */
235-
} else {
233+
} else { /* Count user and kernel space */
236234
if (ev >= ARRAY_SIZE(cpumf_generic_events_basic))
237235
return -EOPNOTSUPP;
238236
ev = cpumf_generic_events_basic[ev];
@@ -402,12 +400,12 @@ static void cpumf_pmu_stop(struct perf_event *event, int flags)
402400
*/
403401
if (!atomic_dec_return(&cpuhw->ctr_set[hwc->config_base]))
404402
ctr_set_stop(&cpuhw->state, hwc->config_base);
405-
event->hw.state |= PERF_HES_STOPPED;
403+
hwc->state |= PERF_HES_STOPPED;
406404
}
407405

408406
if ((flags & PERF_EF_UPDATE) && !(hwc->state & PERF_HES_UPTODATE)) {
409407
hw_perf_event_update(event);
410-
event->hw.state |= PERF_HES_UPTODATE;
408+
hwc->state |= PERF_HES_UPTODATE;
411409
}
412410
}
413411

0 commit comments

Comments
 (0)