Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79930
b: refs/heads/master
c: b8d1fae
h: refs/heads/master
v: v3
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Jan 30, 2008
1 parent 8bfe02c commit 66c98c1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 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: 8f12dea6135d0a55b151dcb4c6bbe211f5f8d35d
refs/heads/master: b8d1fae7dbde6a1227fa142acecb48dc3dd63817
6 changes: 3 additions & 3 deletions trunk/include/asm-x86/msr.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ static inline unsigned long long native_read_tsc(void)
return val;
}

static inline unsigned long long native_read_pmc(void)
static inline unsigned long long native_read_pmc(int counter)
{
unsigned long long val;
asm volatile("rdpmc" : "=A" (val));
asm volatile("rdpmc" : "=A" (val) : "c" (counter));
return val;
}

Expand Down Expand Up @@ -154,7 +154,7 @@ static inline int wrmsr_safe(u32 __msr, u32 __low, u32 __high)

#define rdpmc(counter,low,high) \
do { \
u64 _l = native_read_pmc(); \
u64 _l = native_read_pmc(counter); \
(low) = (u32)_l; \
(high) = (u32)(_l >> 32); \
} while(0)
Expand Down
2 changes: 1 addition & 1 deletion trunk/include/asm-x86/paravirt.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ struct pv_cpu_ops {
int (*write_msr)(unsigned int msr, u64 val);

u64 (*read_tsc)(void);
u64 (*read_pmc)(void);
u64 (*read_pmc)(int counter);

/* These two are jmp to, not actually called. */
void (*irq_enable_syscall_ret)(void);
Expand Down

0 comments on commit 66c98c1

Please sign in to comment.