From: Viresh Kumar Date: Thu, 3 Oct 2013 15:56:54 +0000 (+0530) Subject: cpuidle: don't call poll_idle_init() for every cpu X-Git-Tag: v3.13-rc1~96^2~5^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7c7f103262bc2248548ed0e113e916e843c4eeb;p=pandora-kernel.git 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 Signed-off-by: Viresh Kumar Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed