From: Carl E. Love Date: Thu, 29 Nov 2012 06:42:03 +0000 (+0000) Subject: powerpc/oprofile: Fix error in oprofile power7_marked_instr_event() function X-Git-Tag: v3.8-rc6~15^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=46ed7a76ae7770cb8ba733ee2b06273397ad8b5b;p=pandora-kernel.git powerpc/oprofile: Fix error in oprofile power7_marked_instr_event() function The calculation for the left shift of the mask OPROFILE_PM_PMCSEL_MSK has an error. The calculation is should be to shift left by (max_cntrs - cntr) times the width of the pmsel field width. However, the #define OPROFILE_MAX_PMC_NUM was used instead of OPROFILE_PMSEL_FIELD_WIDTH. This patch fixes the calculation. Signed-off-by: Carl Love Acked-by: Paul Mackerras Signed-off-by: Benjamin Herrenschmidt --- Reading git-diff-tree failed