Commit 333abefb authored by Dmitry Osipenko's avatar Dmitry Osipenko Committed by Chanwoo Choi

PM / devfreq: tegra30: Don't enable already enabled consecutive interrupts

Consecutive up/down interrupt-bit is set in the interrupt status register
only if that interrupt was previously enabled. Thus enabling the already
enabled interrupt doesn't do much for us.
Reviewed-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: default avatarDmitry Osipenko <digetx@gmail.com>
Signed-off-by: default avatarChanwoo Choi <cw00.choi@samsung.com>
parent 9cff2177
...@@ -261,8 +261,6 @@ static void actmon_isr_device(struct tegra_devfreq *tegra, ...@@ -261,8 +261,6 @@ static void actmon_isr_device(struct tegra_devfreq *tegra,
if (dev->boost_freq >= tegra->max_freq) if (dev->boost_freq >= tegra->max_freq)
dev->boost_freq = tegra->max_freq; dev->boost_freq = tegra->max_freq;
else
dev_ctrl |= ACTMON_DEV_CTRL_CONSECUTIVE_ABOVE_WMARK_EN;
} else if (intr_status & ACTMON_DEV_INTR_CONSECUTIVE_LOWER) { } else if (intr_status & ACTMON_DEV_INTR_CONSECUTIVE_LOWER) {
/* /*
* new_boost = old_boost * down_coef * new_boost = old_boost * down_coef
...@@ -275,8 +273,6 @@ static void actmon_isr_device(struct tegra_devfreq *tegra, ...@@ -275,8 +273,6 @@ static void actmon_isr_device(struct tegra_devfreq *tegra,
if (dev->boost_freq < (ACTMON_BOOST_FREQ_STEP >> 1)) if (dev->boost_freq < (ACTMON_BOOST_FREQ_STEP >> 1))
dev->boost_freq = 0; dev->boost_freq = 0;
else
dev_ctrl |= ACTMON_DEV_CTRL_CONSECUTIVE_BELOW_WMARK_EN;
} }
if (dev->config->avg_dependency_threshold) { if (dev->config->avg_dependency_threshold) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment