Skip to content

Commit 333abef

Browse files
digetxchanwoochoi
authored andcommitted
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: Chanwoo Choi <[email protected]> Signed-off-by: Dmitry Osipenko <[email protected]> Signed-off-by: Chanwoo Choi <[email protected]>
1 parent 9cff217 commit 333abef

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

drivers/devfreq/tegra30-devfreq.c

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -261,8 +261,6 @@ static void actmon_isr_device(struct tegra_devfreq *tegra,
261261

262262
if (dev->boost_freq >= tegra->max_freq)
263263
dev->boost_freq = tegra->max_freq;
264-
else
265-
dev_ctrl |= ACTMON_DEV_CTRL_CONSECUTIVE_ABOVE_WMARK_EN;
266264
} else if (intr_status & ACTMON_DEV_INTR_CONSECUTIVE_LOWER) {
267265
/*
268266
* new_boost = old_boost * down_coef
@@ -275,8 +273,6 @@ static void actmon_isr_device(struct tegra_devfreq *tegra,
275273

276274
if (dev->boost_freq < (ACTMON_BOOST_FREQ_STEP >> 1))
277275
dev->boost_freq = 0;
278-
else
279-
dev_ctrl |= ACTMON_DEV_CTRL_CONSECUTIVE_BELOW_WMARK_EN;
280276
}
281277

282278
if (dev->config->avg_dependency_threshold) {

0 commit comments

Comments
 (0)