OMAP2: PM debug: remove leftover debug code
commit 20d5d55149
(OMAP2: PM debug:
remove register dumping) left some code lying around which doesn't
do anything. Clean it up.
Signed-off-by: Michael Jones <michael.jones@matrix-vision.de>
Signed-off-by: Kevin Hilman <khilman@ti.com>
This commit is contained in:
Родитель
fcb8ce5cfe
Коммит
12234f39a2
|
@ -53,8 +53,6 @@
|
||||||
#include "powerdomain.h"
|
#include "powerdomain.h"
|
||||||
#include "clockdomain.h"
|
#include "clockdomain.h"
|
||||||
|
|
||||||
static int omap2_pm_debug;
|
|
||||||
|
|
||||||
#ifdef CONFIG_SUSPEND
|
#ifdef CONFIG_SUSPEND
|
||||||
static suspend_state_t suspend_state = PM_SUSPEND_ON;
|
static suspend_state_t suspend_state = PM_SUSPEND_ON;
|
||||||
static inline bool is_suspending(void)
|
static inline bool is_suspending(void)
|
||||||
|
@ -96,7 +94,6 @@ static int omap2_fclks_active(void)
|
||||||
static void omap2_enter_full_retention(void)
|
static void omap2_enter_full_retention(void)
|
||||||
{
|
{
|
||||||
u32 l;
|
u32 l;
|
||||||
struct timespec ts_preidle, ts_postidle, ts_idle;
|
|
||||||
|
|
||||||
/* There is 1 reference hold for all children of the oscillator
|
/* There is 1 reference hold for all children of the oscillator
|
||||||
* clock, the following will remove it. If no one else uses the
|
* clock, the following will remove it. If no one else uses the
|
||||||
|
@ -124,10 +121,6 @@ static void omap2_enter_full_retention(void)
|
||||||
|
|
||||||
omap2_gpio_prepare_for_idle(0);
|
omap2_gpio_prepare_for_idle(0);
|
||||||
|
|
||||||
if (omap2_pm_debug) {
|
|
||||||
getnstimeofday(&ts_preidle);
|
|
||||||
}
|
|
||||||
|
|
||||||
/* One last check for pending IRQs to avoid extra latency due
|
/* One last check for pending IRQs to avoid extra latency due
|
||||||
* to sleeping unnecessarily. */
|
* to sleeping unnecessarily. */
|
||||||
if (omap_irq_pending())
|
if (omap_irq_pending())
|
||||||
|
@ -155,13 +148,6 @@ static void omap2_enter_full_retention(void)
|
||||||
console_unlock();
|
console_unlock();
|
||||||
|
|
||||||
no_sleep:
|
no_sleep:
|
||||||
if (omap2_pm_debug) {
|
|
||||||
unsigned long long tmp;
|
|
||||||
|
|
||||||
getnstimeofday(&ts_postidle);
|
|
||||||
ts_idle = timespec_sub(ts_postidle, ts_preidle);
|
|
||||||
tmp = timespec_to_ns(&ts_idle) * NSEC_PER_USEC;
|
|
||||||
}
|
|
||||||
omap2_gpio_resume_after_idle();
|
omap2_gpio_resume_after_idle();
|
||||||
|
|
||||||
clk_enable(osc_ck);
|
clk_enable(osc_ck);
|
||||||
|
@ -219,7 +205,6 @@ static int omap2_allow_mpu_retention(void)
|
||||||
static void omap2_enter_mpu_retention(void)
|
static void omap2_enter_mpu_retention(void)
|
||||||
{
|
{
|
||||||
int only_idle = 0;
|
int only_idle = 0;
|
||||||
struct timespec ts_preidle, ts_postidle, ts_idle;
|
|
||||||
|
|
||||||
/* Putting MPU into the WFI state while a transfer is active
|
/* Putting MPU into the WFI state while a transfer is active
|
||||||
* seems to cause the I2C block to timeout. Why? Good question. */
|
* seems to cause the I2C block to timeout. Why? Good question. */
|
||||||
|
@ -246,19 +231,7 @@ static void omap2_enter_mpu_retention(void)
|
||||||
only_idle = 1;
|
only_idle = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (omap2_pm_debug) {
|
|
||||||
getnstimeofday(&ts_preidle);
|
|
||||||
}
|
|
||||||
|
|
||||||
omap2_sram_idle();
|
omap2_sram_idle();
|
||||||
|
|
||||||
if (omap2_pm_debug) {
|
|
||||||
unsigned long long tmp;
|
|
||||||
|
|
||||||
getnstimeofday(&ts_postidle);
|
|
||||||
ts_idle = timespec_sub(ts_postidle, ts_preidle);
|
|
||||||
tmp = timespec_to_ns(&ts_idle) * NSEC_PER_USEC;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static int omap2_can_sleep(void)
|
static int omap2_can_sleep(void)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче