xen: drop xen_sched_clock in favour of using plain wallclock time
authorJeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Mon, 12 Jul 2010 18:49:59 +0000 (11:49 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 10 Aug 2010 17:20:47 +0000 (10:20 -0700)
commit9c55fad24be2f417233f5ea3959ade85756fda5f
tree3a019db0f604fc97a092310efdff5c62a9d19d5c
parentc66bf6747f1516cb39f17815c8cf5841afd9a5e9
xen: drop xen_sched_clock in favour of using plain wallclock time

commit 8a22b9996b001c88f2bfb54c6de6a05fc39e177a upstream.

xen_sched_clock only counts unstolen time.  In principle this should
be useful to the Linux scheduler so that it knows how much time a process
actually consumed.  But in practice this doesn't work very well as the
scheduler expects the sched_clock time to be synchronized between
cpus.  It also uses sched_clock to measure the time a task spends
sleeping, in which case "unstolen time" isn't meaningful.

So just use plain xen_clocksource_read to return wallclock nanoseconds
for sched_clock.

Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/xen/enlighten.c
arch/x86/xen/time.c