]> git.baikalelectronics.ru Git - kernel.git/commit
x86: split get_cycles_sync
authorGlauber de Oliveira Costa <gcosta@redhat.com>
Wed, 30 Jan 2008 12:31:03 +0000 (13:31 +0100)
committerIngo Molnar <mingo@elte.hu>
Wed, 30 Jan 2008 12:31:03 +0000 (13:31 +0100)
commit8bcf912da8cd9bb84de21cf03bc0dc98fb6b5fde
tree14a47677f3cc7074a5b190e159873b925c8deb77
parent58dba0565d5a03a97a8cacc2c5555080495ff495
x86: split get_cycles_sync

This patch splits get_cycles_sync() into  __get_cycles_sync(),
and the rdtscll part. Paravirt guests cannot issue rdtscl directly,
as it involves a function call in vdso area.

So, using the __get_cycles_sync() base, we introduce vget_cycles_sync,
which then calls the native version of rdtscll. Ideally, however, a guest
should define its own clocksource, together with a vread function

Signed-off-by: Glauber de Oliveira Costa <gcosta@redhat.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/kernel/tsc_64.c
include/asm-x86/tsc.h