static void exynos5_read_ppmu(struct busfreq_data_int *data) { int i, j; for (i = PPMU_RIGHT; i < PPMU_END; i++) { void __iomem *ppmu_base = data->ppmu[i].hw_base; exynos_ppmu_stop(ppmu_base); /* Update local data from PPMU */ data->ppmu[i].ccnt = __raw_readl(ppmu_base + PPMU_CCNT); for (j = PPMU_PMNCNT0; j < PPMU_PMNCNT_MAX; j++) { if (data->ppmu[i].event[j] == 0) data->ppmu[i].count[j] = 0; else data->ppmu[i].count[j] = exynos_ppmu_read(ppmu_base, j); } } busfreq_mon_reset(data); }
void exynos_read_ppmu(struct busfreq_ppmu_data *ppmu_data) { int i, j; for (i = 0; i < ppmu_data->ppmu_end; i++) { void __iomem *ppmu_base = ppmu_data->ppmu[i].hw_base; exynos_ppmu_stop(ppmu_base); /* Update local data from PPMU */ ppmu_data->ppmu[i].ccnt = __raw_readl(ppmu_base + PPMU_CCNT); for (j = PPMU_PMNCNT0; j < PPMU_PMNCNT_MAX; j++) { if (ppmu_data->ppmu[i].event[j] == 0) ppmu_data->ppmu[i].count[j] = 0; else ppmu_data->ppmu[i].count[j] = exynos_ppmu_read(ppmu_base, j); } } busfreq_mon_reset(ppmu_data); }