Messages in this thread Patch in this message | | | Date | Tue, 9 Jun 2009 15:46:21 +0800 | From | Yong Wang <> | Subject | [PATCH -tip] perf_counter/x86: Fix incorrect default branch |
| |
The event selector and UMASK values of Nehalem do not apply to all Intel processors.
Signed-off-by: Yong Wang <yong.y.wang@intel.com>
--- arch/x86/kernel/cpu/perf_counter.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/arch/x86/kernel/cpu/perf_counter.c b/arch/x86/kernel/cpu/perf_counter.c index 56001fe..c74b6d1 100644 --- a/arch/x86/kernel/cpu/perf_counter.c +++ b/arch/x86/kernel/cpu/perf_counter.c @@ -1413,7 +1413,6 @@ static int intel_pmu_init(void) pr_cont("Core2 events, "); break; - default: case 26: memcpy(hw_cache_event_ids, nehalem_hw_cache_event_ids, sizeof(hw_cache_event_ids)); @@ -1426,6 +1425,8 @@ static int intel_pmu_init(void) pr_cont("Atom events, "); break; + default: + break; } return 0; }
| |