diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2013-10-03 21:26:54 +0530 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2013-10-30 01:21:23 +0100 |
commit | d7c7f103262bc2248548ed0e113e916e843c4eeb (patch) | |
tree | 61857531d2d92f559c1a36a6295c7741bfad0a64 /Documentation/cpuidle/governor.txt | |
parent | 1f6b9f74ee3d96909e5e70d4207b4b6740d4db62 (diff) | |
download | linux-d7c7f103262bc2248548ed0e113e916e843c4eeb.tar.gz linux-d7c7f103262bc2248548ed0e113e916e843c4eeb.tar.bz2 linux-d7c7f103262bc2248548ed0e113e916e843c4eeb.zip |
cpuidle: don't call poll_idle_init() for every cpu
poll_idle_init() just initializes drv->states[0] and so that is
required to be done only once for each driver. Currently, it is
called from cpuidle_enable_device() which is called for every CPU
that the driver supports. That is not required, so move it to a
better place and call it from __cpuidle_register_driver() so that
the initialization is carried out only once.
Acked-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'Documentation/cpuidle/governor.txt')
0 files changed, 0 insertions, 0 deletions