lkml.org 
[lkml]   [2015]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH 1/2] arch:x86:kernel:cpu Modified some lines according to coding style
Date
Only some code modifications according to the coding style guide

Signed-off-by: Jose Manuel Abuin Mosquera <abuinjm@gmail.com>
---
arch/x86/kernel/cpu/perf_event_intel_rapl.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/arch/x86/kernel/cpu/perf_event_intel_rapl.c b/arch/x86/kernel/cpu/perf_event_intel_rapl.c
index 5cbd4e6..1368d21 100644
--- a/arch/x86/kernel/cpu/perf_event_intel_rapl.c
+++ b/arch/x86/kernel/cpu/perf_event_intel_rapl.c
@@ -116,7 +116,7 @@ static struct perf_pmu_events_attr event_attr_##v = { \
.attr = __ATTR(_name, 0444, rapl_sysfs_show, NULL), \
.id = 0, \
.event_str = str, \
-};
+}

struct rapl_pmu {
spinlock_t lock;
@@ -139,6 +139,7 @@ static struct x86_pmu_quirk *rapl_quirks;
static inline u64 rapl_read_counter(struct perf_event *event)
{
u64 raw;
+
rdmsrl(event->hw.event_base, raw);
return raw;
}
@@ -204,8 +205,8 @@ again:

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

static void rapl_stop_hrtimer(struct rapl_pmu *pmu)
--
2.4.6


\
 
 \ /
  Last update: 2015-07-29 21:11    [W:0.034 / U:0.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site