Re: [PATCH v3 03/20] arm64: Use the physical counter when available for read_cycles

2017-10-18 Thread Marc Zyngier
On Wed, Oct 18 2017 at 1:34:05 pm BST, Christoffer Dall wrote: > On Mon, Oct 09, 2017 at 05:21:24PM +0100, Marc Zyngier wrote: >> On 23/09/17 01:41, Christoffer Dall wrote: >> > Currently get_cycles() is hardwired to arch_counter_get_cntvct() on >> > arm64, but as we move to using the physical t

Re: [PATCH v3 03/20] arm64: Use the physical counter when available for read_cycles

2017-10-18 Thread Christoffer Dall
On Mon, Oct 09, 2017 at 05:21:24PM +0100, Marc Zyngier wrote: > On 23/09/17 01:41, Christoffer Dall wrote: > > Currently get_cycles() is hardwired to arch_counter_get_cntvct() on > > arm64, but as we move to using the physical timer for the in-kernel > > time-keeping, we need to make that more flex

Re: [PATCH v3 03/20] arm64: Use the physical counter when available for read_cycles

2017-10-09 Thread Marc Zyngier
On 23/09/17 01:41, Christoffer Dall wrote: > Currently get_cycles() is hardwired to arch_counter_get_cntvct() on > arm64, but as we move to using the physical timer for the in-kernel > time-keeping, we need to make that more flexible. > > First, we need to make sure the physical counter can be rea

[PATCH v3 03/20] arm64: Use the physical counter when available for read_cycles

2017-09-22 Thread Christoffer Dall
Currently get_cycles() is hardwired to arch_counter_get_cntvct() on arm64, but as we move to using the physical timer for the in-kernel time-keeping, we need to make that more flexible. First, we need to make sure the physical counter can be read on equal terms to the virtual counter, which includ