Merge "PM / devfreq: bimc-bwmon: Fix counter clearing"

This commit is contained in:
Linux Build Service Account 2015-08-16 16:19:45 -07:00 committed by Gerrit - the friendly Code Review server
commit 13f31213b5
1 changed files with 6 additions and 0 deletions

View File

@ -79,6 +79,12 @@ static void mon_disable(struct bwmon *m)
static void mon_clear(struct bwmon *m)
{
writel_relaxed(0x1, MON_CLEAR(m));
/*
* The counter clear and IRQ clear bits are not in the same 4KB
* region. So, we need to make sure the counter clear is completed
* before we try to clear the IRQ or do any other counter operations.
*/
mb();
}
static void mon_irq_enable(struct bwmon *m)