Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 79926
b: refs/heads/master
c: 16e2011
h: refs/heads/master
v: v3
  • Loading branch information
Glauber de Oliveira Costa authored and Ingo Molnar committed Jan 30, 2008
1 parent 1430b38 commit b71f650
Show file tree
Hide file tree
Showing 2 changed files with 15 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: 751de83c0c94a5235f14cff8549d3b39e745eb2b
refs/heads/master: 16e2011be67b8625c1c600f9742c2279be3c0c68
15 changes: 14 additions & 1 deletion trunk/arch/x86/kernel/tsc_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ static void set_cyc2ns_scale(unsigned long cpu_khz, int cpu)
local_irq_restore(flags);
}

unsigned long long sched_clock(void)
unsigned long long native_sched_clock(void)
{
unsigned long a = 0;

Expand All @@ -77,6 +77,19 @@ unsigned long long sched_clock(void)
return cycles_2_ns(a);
}

/* We need to define a real function for sched_clock, to override the
weak default version */
#ifdef CONFIG_PARAVIRT
unsigned long long sched_clock(void)
{
return paravirt_sched_clock();
}
#else
unsigned long long
sched_clock(void) __attribute__((alias("native_sched_clock")));
#endif


static int tsc_unstable;

inline int check_tsc_unstable(void)
Expand Down

0 comments on commit b71f650

Please sign in to comment.