From: MyungJoo Ham Date: Wed, 5 Aug 2015 01:55:10 +0000 (+0900) Subject: PM / devfreq: exynos-ppmu: bit-wise operation bugfix. X-Git-Tag: v4.3-rc2~3^2~1^3^2~6 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=86fa4cdb0f1e16d7e27278e29e4f0b9ba22f1a9b;p=karo-tx-linux.git PM / devfreq: exynos-ppmu: bit-wise operation bugfix. Make it u64 before left-shifting 32bits. Signed-off-by: MyungJoo Ham --- diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index f9901f52a225..f312485f1451 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -319,7 +319,8 @@ static int exynos_ppmu_v2_get_event(struct devfreq_event_dev *edev, case PPMU_PMNCNT3: pmcnt_high = __raw_readl(info->ppmu.base + PPMU_V2_PMCNT3_HIGH); pmcnt_low = __raw_readl(info->ppmu.base + PPMU_V2_PMCNT3_LOW); - load_count = (u64)((pmcnt_high & 0xff) << 32) + (u64)pmcnt_low; + load_count = ((u64)((pmcnt_high & 0xff)) << 32) + + (u64)pmcnt_low; break; } edata->load_count = load_count;