From: Paul Mundt Date: Tue, 12 Oct 2010 18:46:25 +0000 (+0900) Subject: sh: oprofile: Fix up and extend op_name_from_perf_id(). X-Git-Tag: v2.6.37-rc1~61^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2e4f17d230d84579fef07836fb5f69bf1a0a47ad;p=pandora-kernel.git sh: oprofile: Fix up and extend op_name_from_perf_id(). op_name_from_perf_id() currently returns a local variable, which isn't terribly productive. As we only handle a single PMU case for now, simply allocate and free the string from the arch init/exit context and have op_name_from_perf_id() hand back the cached string. This also takes UTS_MACHINE in to account, given that we build for multiple architectures. Signed-off-by: Paul Mundt --- Reading git-diff-tree failed