From: Peter Dinda Date: Thu, 21 Feb 2013 22:36:15 +0000 (-0600) Subject: Minor PMU bugfix X-Git-Url: http://v3vee.org/palacios/gitweb/gitweb.cgi?p=palacios.git;a=commitdiff_plain;h=a24e987112d3807a784b3e9599b2dceb9c6b3481 Minor PMU bugfix --- diff --git a/linux_module/iface-pmu.c b/linux_module/iface-pmu.c index b85ed3f..1f0f459 100644 --- a/linux_module/iface-pmu.c +++ b/linux_module/iface-pmu.c @@ -377,6 +377,7 @@ static void intel_pmu_deinit(void) { if ((get_cpu_var(pmu_refcount)--)==0) { put_cpu_var(pmu_refcount); // actually deinit + return; } put_cpu_var(pmu_refcount); } @@ -606,6 +607,7 @@ static void amd_pmu_deinit(void) { if ((get_cpu_var(pmu_refcount)--)==0) { put_cpu_var(pmu_refcount); // actually deinit + return; } put_cpu_var(pmu_refcount); }