Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-05 Thread Yang, Shunyong
Hi, Kumar, On Wed, 2018-04-04 at 16:06 +0530, Viresh Kumar wrote: > On 04-04-18, 17:16, Shunyong Yang wrote: > > > > When multiple cpus are related in one cpufreq policy, the first > > online > > cpu will be chosen by default to handle cpufreq operations. Let's > > take > > cpu0 and cpu1 as an

Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-05 Thread Yang, Shunyong
Hi, Kumar, On Wed, 2018-04-04 at 16:06 +0530, Viresh Kumar wrote: > On 04-04-18, 17:16, Shunyong Yang wrote: > > > > When multiple cpus are related in one cpufreq policy, the first > > online > > cpu will be chosen by default to handle cpufreq operations. Let's > > take > > cpu0 and cpu1 as an

Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-05 Thread Yang, Shunyong
Hi, Kumar, On Wed, 2018-04-04 at 16:06 +0530, Viresh Kumar wrote: > On 04-04-18, 17:16, Shunyong Yang wrote: > > > > When multiple cpus are related in one cpufreq policy, the first > > online > > cpu will be chosen by default to handle cpufreq operations. Let's > > take > > cpu0 and cpu1 as an

Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-05 Thread Yang, Shunyong
Hi, Kumar, On Wed, 2018-04-04 at 16:06 +0530, Viresh Kumar wrote: > On 04-04-18, 17:16, Shunyong Yang wrote: > > > > When multiple cpus are related in one cpufreq policy, the first > > online > > cpu will be chosen by default to handle cpufreq operations. Let's > > take > > cpu0 and cpu1 as an

Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-04 Thread Viresh Kumar
On 04-04-18, 17:16, Shunyong Yang wrote: > When multiple cpus are related in one cpufreq policy, the first online > cpu will be chosen by default to handle cpufreq operations. Let's take > cpu0 and cpu1 as an example. > > When cpu0 is offline, policy->cpu will be shifted to cpu1. Cpu1's perf >

Re: [PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-04 Thread Viresh Kumar
On 04-04-18, 17:16, Shunyong Yang wrote: > When multiple cpus are related in one cpufreq policy, the first online > cpu will be chosen by default to handle cpufreq operations. Let's take > cpu0 and cpu1 as an example. > > When cpu0 is offline, policy->cpu will be shifted to cpu1. Cpu1's perf >

[PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-04 Thread Shunyong Yang
When multiple cpus are related in one cpufreq policy, the first online cpu will be chosen by default to handle cpufreq operations. Let's take cpu0 and cpu1 as an example. When cpu0 is offline, policy->cpu will be shifted to cpu1. Cpu1's perf capabilities should be initialized. Otherwise, perf

[PATCH v2] cpufreq: cppc_cpufreq: Initialize shared cpu's perf capabilities

2018-04-04 Thread Shunyong Yang
When multiple cpus are related in one cpufreq policy, the first online cpu will be chosen by default to handle cpufreq operations. Let's take cpu0 and cpu1 as an example. When cpu0 is offline, policy->cpu will be shifted to cpu1. Cpu1's perf capabilities should be initialized. Otherwise, perf