From: Robert Richter Date: Mon, 25 May 2009 13:10:32 +0000 (+0200) Subject: x86/oprofile: replace macros to calculate control register X-Git-Tag: v2.6.32-rc1~721^2~41 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3370d358569755625aba4d9a846a040ce691d9ed;p=pandora-kernel.git x86/oprofile: replace macros to calculate control register This patch introduces op_x86_get_ctrl() to calculate the value of the performance control register. This is generic code usable for all models. The event and reserved masks are model specific and stored in struct op_x86_model_spec. 64 bit MSR functions are used now. The patch removes many hard to read macros used for ctrl calculation. The function op_x86_get_ctrl() is common code and the first step to further merge performance counter implementations for x86 models. Signed-off-by: Robert Richter --- Reading git-diff-tree failed