From: David S. Miller Date: Fri, 17 Aug 2012 10:09:39 +0000 (-0700) Subject: sparc64: Rework sparc_pmu_enable() so that the side effects are clearer. X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~48^2~34 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5ab968413515e17788003c522f7ca40a07fae900;p=pandora-kernel.git sparc64: Rework sparc_pmu_enable() so that the side effects are clearer. When cpuc->n_events is zero, we actually don't do anything and we just write the cpuc->pcr[0] value as-is without any modifications. The "pcr = 0;" assignment there was just useless and confusing. Signed-off-by: David S. Miller --- Reading git-diff-tree failed