Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 304889
b: refs/heads/master
c: 98112d2
h: refs/heads/master
i:
  304887: 26fe21c
v: v3
  • Loading branch information
Robert Richter authored and Ingo Molnar committed May 9, 2012
1 parent 7a7e1fc commit 5558528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 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: 450bbd493d436f9eadd1b7828158f37559f26674
refs/heads/master: 98112d2e957e0d348f06d8a40f2f720204a70b55
10 changes: 5 additions & 5 deletions trunk/arch/x86/kernel/cpu/perf_event_amd_ibs.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ struct perf_ibs_data {
};

static int
perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *count)
perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *hw_period)
{
s64 left = local64_read(&hwc->period_left);
s64 period = hwc->sample_period;
Expand Down Expand Up @@ -91,7 +91,7 @@ perf_event_set_period(struct hw_perf_event *hwc, u64 min, u64 max, u64 *count)
if (left > max)
left = max;

*count = (u64)left;
*hw_period = (u64)left;

return overflow;
}
Expand Down Expand Up @@ -262,13 +262,13 @@ static int perf_ibs_init(struct perf_event *event)
static int perf_ibs_set_period(struct perf_ibs *perf_ibs,
struct hw_perf_event *hwc, u64 *period)
{
int ret;
int overflow;

/* ignore lower 4 bits in min count: */
ret = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period);
overflow = perf_event_set_period(hwc, 1<<4, perf_ibs->max_period, period);
local64_set(&hwc->prev_count, 0);

return ret;
return overflow;
}

static u64 get_ibs_fetch_count(u64 config)
Expand Down

0 comments on commit 5558528

Please sign in to comment.