[PATCH] perf/x86: Improve code format

From: Haowen Hu
Date: Sun May 16 2021 - 04:09:31 EST


Reformatted several lines of code, in order to satisfy the kernel code
format.

Signed-off-by: Haowen Hu <src.res.211@xxxxxxxxx>
---
 arch/x86/events/core.c | 2 +-
 arch/x86/events/rapl.c | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/arch/x86/events/core.c b/arch/x86/events/core.c
index 8e509325c2c3..8cd61beb97e7 100644
--- a/arch/x86/events/core.c
+++ b/arch/x86/events/core.c
@@ -2829,7 +2829,7 @@ perf_callchain_user32(struct pt_regs *regs, struct perf_callchain_entry_ctx *ent
 static inline int
 perf_callchain_user32(struct pt_regs *regs, struct perf_callchain_entry_ctx *entry)
 {
-    return 0;
+    return 0;
 }
 #endif

diff --git a/arch/x86/events/rapl.c b/arch/x86/events/rapl.c
index 84a1042c3b01..da43975d9929 100644
--- a/arch/x86/events/rapl.c
+++ b/arch/x86/events/rapl.c
@@ -131,7 +131,7 @@ struct rapl_model {
     enum rapl_unit_quirk    unit_quirk;
 };

- /* 1/2^hw_unit Joule */
+/* 1/2^hw_unit Joule */
 static int rapl_hw_unit[NR_RAPL_DOMAINS] __read_mostly;
 static struct rapl_pmus *rapl_pmus;
 static cpumask_t rapl_cpu_mask;
@@ -209,7 +209,7 @@ static u64 rapl_event_update(struct perf_event *event)

 static void rapl_start_hrtimer(struct rapl_pmu *pmu)
 {
-       hrtimer_start(&pmu->hrtimer, pmu->timer_interval,
+    hrtimer_start(&pmu->hrtimer, pmu->timer_interval,
              HRTIMER_MODE_REL_PINNED);
 }

--
2.25.1