summaryrefslogtreecommitdiff
path: root/arch/x86/machine/pmu_amd.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/machine/pmu_amd.c')
-rw-r--r--arch/x86/machine/pmu_amd.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/machine/pmu_amd.c b/arch/x86/machine/pmu_amd.c
index 8e56bfa..82dc9de 100644
--- a/arch/x86/machine/pmu_amd.c
+++ b/arch/x86/machine/pmu_amd.c
@@ -226,6 +226,7 @@ pmu_amd_setup(void)
pmu = pmu_amd_get();
pmu->pmc_bm = (1U << PMU_AMD_NR_PMCS) - 1;
+ memset(&pmu_driver, 0, sizeof(pmu_driver));
pmu_driver.pmc_width = PMU_AMD_PMC_WIDTH;
/* Set max_tick to half the number of instruction per seconds. */
pmu_driver.of_max_ticks =