diff options
author | Markus Metzger <markus.t.metzger@googlemail.com> | 2008-11-09 08:29:21 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-10 02:50:32 -0500 |
commit | f4166c54bfe04f64603974058e44fbd7cfef0ccc (patch) | |
tree | 952c9e53143990dbd6159cb6c2412498d84a49e3 /arch/x86/kernel/ds.c | |
parent | f7160c7573615ec82c691e294cf80d920b5d588d (diff) |
x86, bts: DS and BTS initialization
Impact: widen BTS/PEBS ptrace enablement to more CPU models
Move BTS initialisation out of an #ifdef CONFIG_X86_64 guard.
Assume core2 BTS and DS layout for future models of family 6 processors.
Signed-off-by: Markus Metzger <markus.t.metzger@intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'arch/x86/kernel/ds.c')
-rw-r--r-- | arch/x86/kernel/ds.c | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/arch/x86/kernel/ds.c b/arch/x86/kernel/ds.c index 2b69994fd3a8..c570252905a1 100644 --- a/arch/x86/kernel/ds.c +++ b/arch/x86/kernel/ds.c | |||
@@ -821,17 +821,16 @@ void __cpuinit ds_init_intel(struct cpuinfo_x86 *c) | |||
821 | switch (c->x86) { | 821 | switch (c->x86) { |
822 | case 0x6: | 822 | case 0x6: |
823 | switch (c->x86_model) { | 823 | switch (c->x86_model) { |
824 | case 0 ... 0xC: | ||
825 | /* sorry, don't know about them */ | ||
826 | break; | ||
824 | case 0xD: | 827 | case 0xD: |
825 | case 0xE: /* Pentium M */ | 828 | case 0xE: /* Pentium M */ |
826 | ds_configure(&ds_cfg_var); | 829 | ds_configure(&ds_cfg_var); |
827 | break; | 830 | break; |
828 | case 0xF: /* Core2 */ | 831 | default: /* Core2, Atom, ... */ |
829 | case 0x1C: /* Atom */ | ||
830 | ds_configure(&ds_cfg_64); | 832 | ds_configure(&ds_cfg_64); |
831 | break; | 833 | break; |
832 | default: | ||
833 | /* sorry, don't know about them */ | ||
834 | break; | ||
835 | } | 834 | } |
836 | break; | 835 | break; |
837 | case 0xF: | 836 | case 0xF: |