Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312226
b: refs/heads/master
c: e2b297f
h: refs/heads/master
v: v3
  • Loading branch information
Shuah Khan authored and Ingo Molnar committed Jun 11, 2012
1 parent 03be2fd commit 03bd37c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c3e228d59bd2054fd57f7f146ef0f6fb0e1996b7
refs/heads/master: e2b297fcf17fc03734e93387fb8195c782286b35
7 changes: 6 additions & 1 deletion trunk/arch/x86/kernel/cpu/perf_event.c
Original file line number Diff line number Diff line change
Expand Up @@ -1640,7 +1640,12 @@ static ssize_t set_attr_rdpmc(struct device *cdev,
struct device_attribute *attr,
const char *buf, size_t count)
{
unsigned long val = simple_strtoul(buf, NULL, 0);
unsigned long val;
ssize_t ret;

ret = kstrtoul(buf, 0, &val);
if (ret)
return ret;

if (!!val != !!x86_pmu.attr_rdpmc) {
x86_pmu.attr_rdpmc = !!val;
Expand Down

0 comments on commit 03bd37c

Please sign in to comment.