aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/ptrace
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 /tools/testing/selftests/powerpc/ptrace
parentpowerpc/pseries: Export maximum memory value (diff)
downloadlinux-dev-c43befca86ae35cc82bd889484bd179bff27b6c6.tar.xz
linux-dev-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 'tools/testing/selftests/powerpc/ptrace')
0 files changed, 0 insertions, 0 deletions