summaryrefslogtreecommitdiffstats
path: root/init/calibrate.c
diff options
context:
space:
mode:
authorPaul Mackerras <paulus@ozlabs.org>2018-10-20 20:54:55 +1100
committerMichael Ellerman <mpe@ellerman.id.au>2018-10-26 21:58:58 +1100
commitc43befca86ae35cc82bd889484bd179bff27b6c6 (patch)
tree6d7fbe589a4e02747707b49dc081984f9e1106f4 /init/calibrate.c
parent772b039fd9a7e12d5fc80e6f649341934ad51fbe (diff)
downloadlinux-stable-c43befca86ae35cc82bd889484bd179bff27b6c6.tar.gz
linux-stable-c43befca86ae35cc82bd889484bd179bff27b6c6.tar.bz2
linux-stable-c43befca86ae35cc82bd889484bd179bff27b6c6.zip
KVM: PPC: Use exported tb_to_ns() function in decrementer emulation
This changes the KVM code that emulates the decrementer function to do the conversion of decrementer values to time intervals in nanoseconds by calling the tb_to_ns() function exported by the powerpc timer code, in preference to open-coded arithmetic using values from the decrementer_clockevent struct. Similarly, the HV-KVM code that did the same conversion using arithmetic on tb_ticks_per_sec also now uses tb_to_ns(). Signed-off-by: Paul Mackerras <paulus@ozlabs.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'init/calibrate.c')
0 files changed, 0 insertions, 0 deletions