Skip to content

Commit fafa3a3

Browse files
committed
Merge branch 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip
* 'x86/urgent' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip: x86: fix TSC build error on 32bit
2 parents 7e2225d + 431ceb8 commit fafa3a3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

arch/x86/kernel/tsc.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,13 +358,15 @@ static cycle_t read_tsc(void)
358358
ret : clocksource_tsc.cycle_last;
359359
}
360360

361+
#ifdef CONFIG_X86_64
361362
static cycle_t __vsyscall_fn vread_tsc(void)
362363
{
363364
cycle_t ret = (cycle_t)vget_cycles();
364365

365366
return ret >= __vsyscall_gtod_data.clock.cycle_last ?
366367
ret : __vsyscall_gtod_data.clock.cycle_last;
367368
}
369+
#endif
368370

369371
static struct clocksource clocksource_tsc = {
370372
.name = "tsc",

0 commit comments

Comments
 (0)