Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 147304
b: refs/heads/master
c: 1955643
h: refs/heads/master
v: v3
  • Loading branch information
Peter Zijlstra authored and Ingo Molnar committed Apr 6, 2009
1 parent c4566f7 commit cbb62f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 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: 38ff667b321b00f5e6830e93fb4ab11a653a2920
refs/heads/master: 195564390210977954fe4ef45b39cdee34f41b59
14 changes: 1 addition & 13 deletions trunk/Documentation/perf_counter/kerneltop.c
Original file line number Diff line number Diff line change
Expand Up @@ -1125,22 +1125,10 @@ struct mmap_data {
static unsigned int mmap_read_head(struct mmap_data *md)
{
struct perf_counter_mmap_page *pc = md->base;
unsigned int seq, head;

repeat:
rmb();
seq = pc->lock;

if (unlikely(seq & 1)) {
cpu_relax();
goto repeat;
}
int head;

head = pc->data_head;

rmb();
if (pc->lock != seq)
goto repeat;

return head;
}
Expand Down

0 comments on commit cbb62f0

Please sign in to comment.