Re: [PATCH v2,2/5] powerpc/rcpm: add RCPM driver

2015-08-27 Thread Scott Wood
On Fri, 2015-08-28 at 08:40 +0800, Scott Wood wrote: > On Thu, Aug 27, 2015 at 4:35 AM, Scott Wood > wrote: > > On Wed, Aug 26, 2015 at 08:09:45PM +0800, Chenhui Zhao wrote: I didn't write this e-mail. Please fix your mail client. > > > +static void rcpm_v1_cpu_up_prepare(int cpu) > > > +{ >

Re: [PATCH v2,2/5] powerpc/rcpm: add RCPM driver

2015-08-27 Thread Scott Wood
On Thu, Aug 27, 2015 at 4:35 AM, Scott Wood wrote: On Wed, Aug 26, 2015 at 08:09:45PM +0800, Chenhui Zhao wrote: +#ifdef CONFIG_PPC_BOOK3E +static void qoriq_disable_thread(int cpu) +{ + int hw_cpu = get_hard_smp_processor_id(cpu); + int thread = cpu_thread_in_core(hw_cpu); +

Re: [PATCH v2,2/5] powerpc/rcpm: add RCPM driver

2015-08-26 Thread Scott Wood
On Wed, Aug 26, 2015 at 08:09:45PM +0800, Chenhui Zhao wrote: > +#ifdef CONFIG_PPC_BOOK3E > +static void qoriq_disable_thread(int cpu) > +{ > + int hw_cpu = get_hard_smp_processor_id(cpu); > + int thread = cpu_thread_in_core(hw_cpu); > + > + mtspr(SPRN_TENC, TEN_THREAD(thread)); > +} >

[PATCH v2,2/5] powerpc/rcpm: add RCPM driver

2015-08-26 Thread Chenhui Zhao
There is a RCPM (Run Control/Power Management) in Freescale QorIQ series processors. The device performs tasks associated with device run control and power management. The driver implements some features: mask/unmask irq, enter/exit low power states, freeze time base, etc. Signed-off-by: Chenhui