lkml.org 
[lkml]   [2009]   [Jun]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    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;
    }

    \
     
     \ /
      Last update: 2009-06-09 10:07    [W:2.844 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site