Commit Graph

3 Commits

Author SHA1 Message Date
Stephen Boyd eca2fd25fc soc: qcom: rq_stats: Always show idle time left
The def_timer_ms file indicates how much time has passed since we
wrote to the file to start the timer, but the time is only
updated when the work runs, instead of on demand when the file is
read. If we're poll(3)ing this file and another file and the
other file wakes our process up from sleep we won't know without
measuring time ourselves. Make this easier on userspace by always
showing the amount of time since we wrote the file so that we can
figure out how long we were asleep for.

Change-Id: I06135a94a41a5cd13454a92f2de7e63683ede4a5
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2014-12-09 18:01:58 -08:00
Archana Sathyakumar a6e6c81490 msm:rq_stats: Add hotplug disable attribute
Register for suspend and resume notifications from kernel. This should
be done as part of core_initcall so as to receive notification as close
as possible to the actual event. Add hotplug_disable attribute to
rq-stats node. Set/clear this attribute based on the suspend/resume events.

CRS-fixed: 452456
Change-Id: I76fee349b57f47df40785e9c2503e2e1cc6e064e
Signed-off-by: Archana Sathyakumar <asathyak@codeaurora.org>
2013-09-04 16:08:47 -07:00
Amar Singhal 426b827d1f rq_stats: Doing rq_stats calculation in the scheduler tick.
With this change, we do the average run queue statistics calculation
in the scheduler tick itself. This helps avoid any extra timers to
do the same. Also doing this calculation in the scheduler tick avoids
any bias if the calculation is done in a workqueue

Change-Id: I854d90acc05cc7a7226487be5555976826d8c837
Signed-off-by: Amar Singhal <asinghal@codeaurora.org>
(cherry picked from commit f49d99bc4168c7937655bb09989cc72525163b40)
2013-07-08 05:51:39 -07:00