]> git.proxmox.com Git - qemu.git/commit
openrisc-timer: Reduce overhead, Separate clock update functions
authorSebastian Macke <sebastian@macke.de>
Tue, 22 Oct 2013 00:12:41 +0000 (02:12 +0200)
committerJia Liu <proljc@gmail.com>
Wed, 20 Nov 2013 13:46:45 +0000 (21:46 +0800)
commitd51552176a2ab5e80a211514aa1339fe2575ec2a
treef272c169ec8acfdd998b69d7d4eb1ab9af58708d
parentae52bd96ceaea36c486d8ffeb798e160f31d3be8
openrisc-timer: Reduce overhead, Separate clock update functions

The clock value is only evaluated when really necessary reducing
the overhead of the timer handling.

This also solves a problem in the way the Linux kernel
handles the timer and the expected accuracy.
The old version could lead to inaccurate timings.

Signed-off-by: Sebastian Macke <sebastian@macke.de>
Reviewed-by: Jia Liu <proljc@gmail.com>
Signed-off-by: Jia Liu <proljc@gmail.com>
hw/openrisc/cputimer.c
target-openrisc/cpu.h
target-openrisc/sys_helper.c