Re: [Qemu-devel] [kvm-unit-tests PATCH v2 04/10] arm/arm64: add some delay routines

2016-06-06 Thread Alex Bennée
Andrew Jones writes: > Allow a thread to wait some specified amount of time. Can > specify in cycles, usecs, and msecs. I wonder if delay() and mdelay() can be in common code with just the freq and count getting functions in specific code? I guess that would need a lib/arm-generic/ or some such

Re: [Qemu-devel] [kvm-unit-tests PATCH v2 04/10] arm/arm64: add some delay routines

2016-06-06 Thread Andrew Jones
On Mon, Jun 06, 2016 at 06:39:50PM +0100, Alex Bennée wrote: > > Andrew Jones writes: > > > Allow a thread to wait some specified amount of time. Can > > specify in cycles, usecs, and msecs. > > I wonder if delay() and mdelay() can be in common code with just the > freq and count getting functi

[Qemu-devel] [kvm-unit-tests PATCH v2 04/10] arm/arm64: add some delay routines

2016-06-04 Thread Andrew Jones
Allow a thread to wait some specified amount of time. Can specify in cycles, usecs, and msecs. Signed-off-by: Andrew Jones --- lib/arm/asm/processor.h | 19 +++ lib/arm/processor.c | 15 +++ lib/arm64/asm/processor.h | 19 +++ lib/arm64/process