Revert "Revert wait4vsync changes until panel init sequence is fixed."

This reverts commit 633b1b245d4a8e13953bb438e816508503fd112b.
msm: display: reset vsync state when display is turned on

In the case that vsync ctrl is unbalanced, vsync IRQ is cleared
in suspend,  vsync cannot be enabled after resume.
Clear the status when display is turned on

CRs-fixed: 449155
Change-Id: I5ecf23053b60d1fbd91f042758d67d39c83ab444
Signed-off-by: Ken Zhang <kenz@codeaurora.org>
msm: rq_stats: Fix lockdep warnings with key's not in .data

Sysfs attributes have lockdep keys and so they should exist in
the data section. Failure to do this results in lockdep turning
itself off and warnings such as:

	BUG: key eeb0883c not in .data!

Fix this problem by statically allocating the attributes.

Change-Id: I30202d8ed561c766ecd2c86657117282e2e25fd1
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
msm: rq_stats: Support to know cpu utilization in userspace

Support to read utilization stats from userspace, used by
mpdecision. This implementation is independent of governor
and sampling rates.

Change-Id: I678c7462ba77d84ce4c51c36a61da7ac99ffecc8
Signed-off-by: Narayanan Gopalakrishnan <nargop@codeaurora.org>
Signed-off-by: Ajay Dudani <adudani@codeaurora.org>
msm: rq_stats: remove io_is_busy from load computation

Existing runqueue implementatoin assumes io_is_busy is set.
This causes huge frequency scaling. So remove this assumption
from the code.

CR-fixed: 455060
Change-Id: Iec3e5a4d2c787a51e23961b54292f9ab59e69ea2
Signed-off-by: Murali Nalajala <mnalajal@codeaurora.org>
Merge remote-tracking branch 'upstream/cm-10.1' into cm-10.1