From: Bharat Bhushan Date: Wed, 18 Apr 2012 06:01:19 +0000 (+0000) Subject: KVM: PPC: Use clockevent multiplier and shifter for decrementer X-Git-Tag: v3.5-rc1~88^2~11^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6e35994d1f6831af1e5577e28c363c9137d7d597;p=pandora-kernel.git KVM: PPC: Use clockevent multiplier and shifter for decrementer Time for which the hrtimer is started for decrementer emulation is calculated using tb_ticks_per_usec. While hrtimer uses the clockevent for DEC reprogramming (if needed) and which calculate timebase ticks using the multiplier and shifter mechanism implemented within clockevent layer. It was observed that this conversion (timebase->time->timebase) are not correct because the mechanism are not consistent. In our setup it adds 2% jitter. With this patch clockevent multiplier and shifter mechanism are used when starting hrtimer for decrementer emulation. Now the jitter is < 0.5%. Signed-off-by: Bharat Bhushan Signed-off-by: Alexander Graf --- Reading git-diff-tree failed