lkml.org 
[lkml]   [2021]   [May]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] perf/x86: Improve code format
Date
Reformatted several lines of code, in order to satisfy the kernel code
format.

Signed-off-by: Haowen Hu <src.res.211@gmail.com>
---
 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
\
 
 \ /
  Last update: 2021-05-16 10:11    [W:0.070 / U:0.980 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site