1 #include <linux/kernel.h>
2 #include <linux/module.h>
3 #include <linux/version.h>
8 ifxmips_pmu_enable(unsigned int module)
12 ifxmips_w32(ifxmips_r32(IFXMIPS_PMU_PWDCR) & ~module, IFXMIPS_PMU_PWDCR);
13 while (--err && (ifxmips_r32(IFXMIPS_PMU_PWDSR) & module));
16 panic("activating PMU module failed!");
18 EXPORT_SYMBOL(ifxmips_pmu_enable);
21 ifxmips_pmu_disable(unsigned int module)
23 ifxmips_w32(ifxmips_r32(IFXMIPS_PMU_PWDCR) | module, IFXMIPS_PMU_PWDCR);
25 EXPORT_SYMBOL(ifxmips_pmu_disable);