Re: [PATCHv4] powerpc/timer - large decrementer support

2016-06-23 Thread oliver
On Thu, Jun 23, 2016 at 6:02 PM, Denis Kirjanov wrote: > On 6/23/16, Oliver O'Halloran wrote: >> +static void __init set_decrementer_max(void) >> +{ >> + struct device_node *cpu; >> + const __be32 *fp; >> + u64 bits = 32; >> + >> + /* Prior

Re: [PATCHv4] powerpc/timer - large decrementer support

2016-06-23 Thread Denis Kirjanov
On 6/23/16, Oliver O'Halloran wrote: > Power ISAv3 adds a large decrementer (LD) mode which increases the size > of the decrementer register. The size of the enlarged decrementer > register is between 32 and 64 bits with the exact size being dependent > on the implementation.

[PATCHv4] powerpc/timer - large decrementer support

2016-06-23 Thread Oliver O'Halloran
Power ISAv3 adds a large decrementer (LD) mode which increases the size of the decrementer register. The size of the enlarged decrementer register is between 32 and 64 bits with the exact size being dependent on the implementation. When in LD mode, reads are sign extended to 64 bits and a