summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorVenkatesh Pallipadi <venkatesh.pallipadi@intel.com>2007-11-19 21:43:22 -0500
committerLen Brown <len.brown@intel.com>2007-11-19 21:43:22 -0500
commitddc081a19585c8ba5aad437779950c2ef215360a (patch)
treebea2be9bb259a336cb3be7f0babfb5bd571517da /include/linux
parent5062911830a66df0c0ad28c387a8c0623cb0d28c (diff)
downloadop-kernel-dev-ddc081a19585c8ba5aad437779950c2ef215360a.zip
op-kernel-dev-ddc081a19585c8ba5aad437779950c2ef215360a.tar.gz
cpuidle: fix HP nx6125 regression
Fix for http://bugzilla.kernel.org/show_bug.cgi?id=9355 cpuidle always used to fallback to C2 if there is some bm activity while entering C3. But, presence of C2 is not always guaranteed. Change cpuidle algorithm to detect a safe_state to fallback in case of bm_activity and use that state instead of C2. Signed-off-by: Venkatesh Pallipadi <venkatesh.pallipadi@intel.com> Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/cpuidle.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/cpuidle.h b/include/linux/cpuidle.h
index 16a5154..c4e0016 100644
--- a/include/linux/cpuidle.h
+++ b/include/linux/cpuidle.h
@@ -92,6 +92,7 @@ struct cpuidle_device {
struct kobject kobj;
struct completion kobj_unregister;
void *governor_data;
+ struct cpuidle_state *safe_state;
};
DECLARE_PER_CPU(struct cpuidle_device *, cpuidle_devices);
OpenPOWER on IntegriCloud