1. 02 4月, 2013 1 次提交
    • V
      cpufreq: cpufreq-cpu0: No need to check cpu number in init() · 746b3df9
      Viresh Kumar 提交于
      It is not possible for init() to be called for any cpu other than cpu0. During
      bootup whatever cpu is used to boot system will be assigned as cpu0. And later
      on policy->cpu can only change if we hotunplug all cpus first and then hotplug
      them back in different order, which isn't possible (system requires atleast one
      cpu to be up always :)).
      
      Though I can see one situation where policy->cpu can be different then zero.
      - Hot-unplug cpu 0.
      - rmmod cpufreq-cpu0 module
      - insmod it back
      - hotplug cpu 0 again.
      
      Here, policy->cpu would be different. But the driver doesn't have any dependency
      on cpu0 as such. We don't mind which cpu of a system is policy->cpu and so this
      check is just not required.
      
      Remove it.
      Signed-off-by: NViresh Kumar <viresh.kumar@linaro.org>
      Acked-by: NShawn Guo <shawn.guo@linaro.org>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      746b3df9
  2. 01 4月, 2013 1 次提交
  3. 02 2月, 2013 3 次提交
  4. 22 1月, 2013 1 次提交
  5. 21 11月, 2012 1 次提交
  6. 10 9月, 2012 1 次提交