ppc hwpmc: Remove unused variables.

This commit is contained in:
John Baldwin 2022-04-12 14:58:58 -07:00
parent da8b238529
commit 16471f4716
2 changed files with 0 additions and 11 deletions

View File

@ -348,17 +348,11 @@ mpc7xxx_pmcn_write(unsigned int pmc, uint32_t val)
static void
mpc7xxx_set_pmc(int cpu, int ri, int config)
{
struct pmc *pm;
struct pmc_hw *phw;
register_t pmc_mmcr;
uint32_t config_mask;
phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri];
pm = phw->phw_pmc;
/* The mask is inverted (enable is 1) compared to the flags in
* MMCR0, which are Freeze flags.
*/
config_mask = ~config & POWERPC_PMC_ENABLE;
config &= ~POWERPC_PMC_ENABLE;
/* Enable/disable the PMC. */

View File

@ -256,14 +256,9 @@ static size_t ppc970_event_codes_size = nitems(ppc970_event_codes);
static void
ppc970_set_pmc(int cpu, int ri, int config)
{
struct pmc *pm;
struct pmc_hw *phw;
register_t pmc_mmcr;
int config_mask;
phw = &powerpc_pcpu[cpu]->pc_ppcpmcs[ri];
pm = phw->phw_pmc;
if (config == PMCN_NONE)
config = PMC970N_NONE;