Re: [PATCH v3] cpuidle/coupled: Add sanity check for safe_state_index

2015-09-03 Thread Xunlei Pang
Hi Rafael, On 3 September 2015 at 09:35, Rafael J. Wysocki wrote: > On Monday, August 31, 2015 11:34:05 AM Xunlei Pang wrote: >> From: Xunlei Pang >> >> Since we are using cpuidle_driver::safe_state_index directly as the >> target state index, it is better to add the sanity check at the point >>

Re: [PATCH v3] cpuidle/coupled: Add sanity check for safe_state_index

2015-09-02 Thread Rafael J. Wysocki
On Monday, August 31, 2015 11:34:05 AM Xunlei Pang wrote: > From: Xunlei Pang > > Since we are using cpuidle_driver::safe_state_index directly as the > target state index, it is better to add the sanity check at the point > of registering the driver. > > Signed-off-by: Xunlei Pang I'm queuing

[PATCH v3] cpuidle/coupled: Add sanity check for safe_state_index

2015-08-30 Thread Xunlei Pang
From: Xunlei Pang Since we are using cpuidle_driver::safe_state_index directly as the target state index, it is better to add the sanity check at the point of registering the driver. Signed-off-by: Xunlei Pang --- v2->v3: Move the code to a new cpuidle_coupled_state_verify() depending on CONFI