OSDN Git Service

cpuidle: Set polling in poll_idle
authorAndy Lutomirski <luto@amacapital.net>
Wed, 4 Jun 2014 17:31:14 +0000 (10:31 -0700)
committerIngo Molnar <mingo@kernel.org>
Thu, 5 Jun 2014 10:09:49 +0000 (12:09 +0200)
commit84c407084137d4e491b07ea5ff8665d19106a5ac
tree39546e5d10871d68abef16efa1026958f9ce5132
parent0b07939cbfdd05bed0c5ec01b8b25493e6ecd34c
cpuidle: Set polling in poll_idle

poll_idle is the archetypal polling idle loop; tell the core idle
code about it.

This avoids pointless IPIs when all of the other cpuidle states are
disabled.

Signed-off-by: Andy Lutomirski <luto@amacapital.net>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Cc: nicolas.pitre@linaro.org
Cc: umgwanakikbuti@gmail.com
Cc: Daniel Lezcano <daniel.lezcano@linaro.org>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Rafael J. Wysocki <rjw@rjwysocki.net>
Cc: linux-kernel@vger.kernel.org
Cc: linux-pm@vger.kernel.org
Link: http://lkml.kernel.org/r/c65ce49615d338bae8fb79df5daffab19353c900.1401902905.git.luto@amacapital.net
Signed-off-by: Ingo Molnar <mingo@kernel.org>
drivers/cpuidle/driver.c