summaryrefslogtreecommitdiffstats
path: root/arch/x86/oprofile/op_model_p4.c
diff options
context:
space:
mode:
authorRobert Richter2009-05-25 15:10:32 +0200
committerRobert Richter2009-06-11 19:42:14 +0200
commit3370d358569755625aba4d9a846a040ce691d9ed (patch)
tree97b712208843a33dd29d1bfd9f90bc8aec30a595 /arch/x86/oprofile/op_model_p4.c
parentx86/oprofile: pass the model to setup_ctrs() functions (diff)
downloadkernel-qcow2-linux-3370d358569755625aba4d9a846a040ce691d9ed.tar.gz
kernel-qcow2-linux-3370d358569755625aba4d9a846a040ce691d9ed.tar.xz
kernel-qcow2-linux-3370d358569755625aba4d9a846a040ce691d9ed.zip
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 <robert.richter@amd.com>
Diffstat (limited to 'arch/x86/oprofile/op_model_p4.c')
0 files changed, 0 insertions, 0 deletions