summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLen Brown <len.brown@intel.com>2011-01-12 02:34:59 -0500
committerLen Brown <len.brown@intel.com>2011-01-12 12:47:31 -0500
commitd247632c08c674864d438733280422ddb7130ff8 (patch)
treed9c759480147cd867b72ceb8625554b2e7b550ed
parent0aae9f923bcc476a8e4725dd3ac37547b9816ee5 (diff)
downloadop-kernel-dev-d247632c08c674864d438733280422ddb7130ff8.zip
op-kernel-dev-d247632c08c674864d438733280422ddb7130ff8.tar.gz
cpuidle: delete NOP CPUIDLE_FLAG_POLL
it serves no purpose Signed-off-by: Len Brown <len.brown@intel.com>
-rw-r--r--drivers/cpuidle/cpuidle.c2
-rw-r--r--include/linux/cpuidle.h1
2 files changed, 1 insertions, 2 deletions
diff --git a/drivers/cpuidle/cpuidle.c b/drivers/cpuidle/cpuidle.c
index 37e4460..dd5f1ea 100644
--- a/drivers/cpuidle/cpuidle.c
+++ b/drivers/cpuidle/cpuidle.c
@@ -186,7 +186,7 @@ static void poll_idle_init(struct cpuidle_device *dev)
state->exit_latency = 0;
state->target_residency = 0;
state->power_usage = -1;
- state->flags = CPUIDLE_FLAG_POLL;
+ state->flags = 0;
state->enter = poll_idle;
}
#else
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 1be416b..dee3285 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -48,7 +48,6 @@ struct cpuidle_state {
/* Idle State Flags */
#define CPUIDLE_FLAG_TIME_VALID (0x01) /* is residency time measurable? */
#define CPUIDLE_FLAG_CHECK_BM (0x02) /* BM activity will exit state */
-#define CPUIDLE_FLAG_POLL (0x10) /* no latency, no savings */
#define CPUIDLE_FLAG_SHALLOW (0x20) /* low latency, minimal savings */
#define CPUIDLE_FLAG_BALANCED (0x40) /* medium latency, moderate savings */
#define CPUIDLE_FLAG_DEEP (0x80) /* high latency, large savings */
OpenPOWER on IntegriCloud