diff options
author | Remy Noel <mocramis@gmail.com> | 2018-05-03 14:27:24 +0200 |
---|---|---|
committer | Remy Noel <mocramis@gmail.com> | 2018-05-03 15:42:08 +0200 |
commit | bdd785431c87d1a3362c69650415cadfc0c4adc5 (patch) | |
tree | 73f9b9bbcdcdf331aa8d74f0db175b63f7c98a68 /kern/perfmon.c | |
parent | 8f7aeebfc21af051ecb914d286564a10492927a0 (diff) |
perfmon: Remove useless accessors.
Also rename pmc oveflow handling function.
Diffstat (limited to 'kern/perfmon.c')
-rw-r--r-- | kern/perfmon.c | 22 |
1 files changed, 1 insertions, 21 deletions
diff --git a/kern/perfmon.c b/kern/perfmon.c index 0211141..c910069 100644 --- a/kern/perfmon.c +++ b/kern/perfmon.c @@ -444,28 +444,8 @@ perfmon_cpu_pmu_get_pmc_from_id(unsigned int pmc_id) return cpu_pmc; } -uint64_t -perfmon_cpu_pmc_get_prev(unsigned int pmc_id) -{ - struct perfmon_cpu_pmc *cpu_pmc; - - cpu_pmc = perfmon_cpu_pmu_get_pmc_from_id(pmc_id); - - return cpu_pmc->prev_value; -} - -void -perfmon_cpu_pmc_set_prev(unsigned int pmc_id, uint64_t prev) -{ - struct perfmon_cpu_pmc *cpu_pmc; - - cpu_pmc = perfmon_cpu_pmu_get_pmc_from_id(pmc_id); - - cpu_pmc->prev_value = prev; -} - void -perfmon_cpu_pmc_inc_of(unsigned int pmc_id) +perfmon_cpu_on_pmc_of(unsigned int pmc_id) { struct perfmon_cpu_pmc *cpu_pmc; |