Skip to contentSkip to conversation

perf/x86: Improve code format

PATCH In review Haowen Hu 2 participants 2 messages May 16, 2021

Subsystems (2)
lore
Share & tools
lore

Haowen Hu

author
#0 lore raw

PATCH 1/1 perf/x86: Improve code format

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

---
 arch/x86/events/core.c | 2 +-
 arch/x86/events/rapl.c | 4 ++--

 2 files changed, 3 insertions(+), 3 deletions(-)
arch/x86/events/core.c +0 -0
index 8e509325c2c3..8cd61beb97e7 100644
@@ -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

arch/x86/events/rapl.c +0 -0
index 84a1042c3b01..da43975d9929 100644
@@ -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);
 }

Signature · 1 line
2.25.1
maintainer
#1 lore raw
Quoted 4 lines · Haowen Hu

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

Your patch is whitespace damaged, also please take your efforts elsewhere, I don't much care for random nothing changes like this.