Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312311
b: refs/heads/master
c: 4208969
h: refs/heads/master
i:
  312309: baafda9
  312307: 174f4ec
  312303: 4e08226
v: v3
  • Loading branch information
Yan, Zheng authored and Ingo Molnar committed Jul 5, 2012
1 parent adab453 commit 422d71a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3b19e4c98c035c9ab218fc64ef26f4f7a30eafb9
refs/heads/master: 42089697244ba8e64fa43fb5e6d50d47a8e4cb00
7 changes: 6 additions & 1 deletion trunk/arch/x86/kernel/cpu/perf_event_intel_uncore.c
Original file line number Diff line number Diff line change
Expand Up @@ -1605,8 +1605,9 @@ static void __init uncore_cpu_setup(void *dummy)

static int __init uncore_cpu_init(void)
{
int ret, cpu;
int ret, cpu, max_cores;

max_cores = boot_cpu_data.x86_max_cores;
switch (boot_cpu_data.x86_model) {
case 26: /* Nehalem */
case 30:
Expand All @@ -1615,9 +1616,13 @@ static int __init uncore_cpu_init(void)
msr_uncores = nhm_msr_uncores;
break;
case 42: /* Sandy Bridge */
if (snb_uncore_cbox.num_boxes > max_cores)
snb_uncore_cbox.num_boxes = max_cores;
msr_uncores = snb_msr_uncores;
break;
case 45: /* Sandy Birdge-EP */
if (snbep_uncore_cbox.num_boxes > max_cores)
snbep_uncore_cbox.num_boxes = max_cores;
msr_uncores = snbep_msr_uncores;
break;
default:
Expand Down

0 comments on commit 422d71a

Please sign in to comment.