PM: fix might_sleep_if in __pm_runtime_idle

commit b1d0d5f ("PM: runtime: add might_sleep to PM runtime functions")
added might_sleep_if() checks for __pm_runtime_* functions. But while
__pm_runtime_suspend/resume checked dev->power.irq_safe (which allows
using these functions in atomic context), __pm_runtime_idle missed
that check.

[Note that this bug doesn't exist in the upstreamed commit (311aab7
"PM / Runtime: Add might_sleep() to runtime PM functions")]

Signed-off-by: Eliad Peller <eliad@wizery.com>
add CIRQ_ENABLE to irq_mask if IBI is supported

Signed-off-by: Eliad Peller <eliad@wizery.com>
mmc: omap_hsmmc: set pm_runtime_irq_safe

Declare the pm runtime handlers as safe to run
in atomic context (it's in fact being called
from mmc_signal_sdio_irq() in irq context)

Signed-off-by: Eliad Peller <eliad@wizery.com>
arm: vfp: Fix memory corruption on PM suspend *EXPERIMENTAL*

Commit 36af2a47 ("ARM: vfp: Always save VFP state in vfp_pm_suspend")
introduced a potential use-after-free bug. On SMP systems,
vfp_current_hw_state might hold dangling pointers, in case a task which
used the VFP last migrates to another CPU and then exits. If
vfp_pm_suspend is called while vfp_current_hw_state still holds a
pointer to the freed thread_info, that memory location will be written,
potentially overwriting a new object allocated there.

The original problem is only relevant to UP systems in which the VFP
state is stored lazily.

Fix this by only storing the VFP state on UP systems, and avoid doing so
on SMP ones.

Signed-off-by: Ido Yariv <ido@wizery.com>
Signed-off-by: Eyal Shapira <eyal@wizery.com>
OMAPDSS: Increase PLL1_CLK1 frequency for correct work with large panels

The current design does not work correctly in case when we are using large
panels with 1080p resolution as default. It happens because current fclk rate
is less then required one. This patch corrects that issue by increasing
PLL1_CLK1 frequency. Also it removes excess initialization of the DISPC fclk
src from HDMI driver.

Change-Id: I24cdbfc417034a9275b1f305a8754bbae306da48
Signed-off-by: Victor Kleinik <x0150886@ti.com>
OMAP4: PM: Add errata id for handling Errata i736

The errata handler is present in kernel 3.0. The patch adds the
Errata id for simplification of search in the kernel sources

Change-Id: I346ac0e1262fdb3fcfd1e38879619baa02ebf4cb
Signed-off-by: Eugen Mandrenko <ievgen.mandrenko@ti.com>