Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/hwpmc/hwpmc_armv7.c
Show First 20 Lines • Show All 322 Lines • ▼ Show 20 Lines | armv7_intr(int cpu, struct trapframe *tf) | ||||
for (ri = 0; ri < armv7_npmcs; ri++) { | for (ri = 0; ri < armv7_npmcs; ri++) { | ||||
pm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc; | pm = armv7_pcpu[cpu]->pc_armv7pmcs[ri].phw_pmc; | ||||
if (pm == NULL) | if (pm == NULL) | ||||
continue; | continue; | ||||
/* Check if counter has overflowed */ | /* Check if counter has overflowed */ | ||||
if (pm->pm_md.pm_armv7.pm_armv7_evsel == PMC_EV_CPU_CYCLES) | if (pm->pm_md.pm_armv7.pm_armv7_evsel == PMC_EV_CPU_CYCLES) | ||||
reg = (1 << 31); | reg = (1U << 31); | ||||
else | else | ||||
reg = (1 << ri); | reg = (1 << ri); | ||||
if ((cp15_pmovsr_get() & reg) == 0) { | if ((cp15_pmovsr_get() & reg) == 0) { | ||||
continue; | continue; | ||||
} | } | ||||
/* Clear Overflow Flag */ | /* Clear Overflow Flag */ | ||||
▲ Show 20 Lines • Show All 210 Lines • Show Last 20 Lines |