Merge branch 'devel-stable' into for-next
authorRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 5 Aug 2014 09:27:25 +0000 (10:27 +0100)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Tue, 5 Aug 2014 09:27:25 +0000 (10:27 +0100)
Conflicts:
arch/arm/kernel/perf_event_cpu.c

1  2 
arch/arm/include/asm/memory.h
arch/arm/include/asm/uaccess.h
arch/arm/kernel/perf_event.c
arch/arm/kernel/perf_event_cpu.c
arch/arm/oprofile/common.c

Simple merge
Simple merge
Simple merge
@@@ -254,35 -259,38 +257,39 @@@ static int probe_current_pmu(struct arm
  
        pr_info("probing PMU on CPU %d\n", cpu);
  
 +      switch (read_cpuid_part()) {
        /* ARM Ltd CPUs. */
 -      if (implementor == ARM_CPU_IMP_ARM) {
 -              switch (part_number) {
 -              case ARM_CPU_PART_ARM1136:
 -                      ret = armv6_1136_pmu_init(pmu);
 -                      break;
 -              case ARM_CPU_PART_ARM1156:
 -                      ret = armv6_1156_pmu_init(pmu);
 -                      break;
 -              case ARM_CPU_PART_ARM1176:
 -                      ret = armv6_1176_pmu_init(pmu);
 -                      break;
 -              case ARM_CPU_PART_ARM11MPCORE:
 -                      ret = armv6mpcore_pmu_init(pmu);
 -                      break;
 -              case ARM_CPU_PART_CORTEX_A8:
 -                      ret = armv7_a8_pmu_init(pmu);
 -                      break;
 -              case ARM_CPU_PART_CORTEX_A9:
 -                      ret = armv7_a9_pmu_init(pmu);
 -                      break;
 -              }
 -      /* Intel CPUs [xscale]. */
 -      } else if (implementor == ARM_CPU_IMP_INTEL) {
 -              switch (xscale_cpu_arch_version()) {
 -              case ARM_CPU_XSCALE_ARCH_V1:
 -                      ret = xscale1pmu_init(pmu);
 -                      break;
 -              case ARM_CPU_XSCALE_ARCH_V2:
 -                      ret = xscale2pmu_init(pmu);
 -                      break;
 +      case ARM_CPU_PART_ARM1136:
++              ret = armv6_1136_pmu_init(pmu);
++              break;
 +      case ARM_CPU_PART_ARM1156:
++              ret = armv6_1156_pmu_init(pmu);
++              break;
 +      case ARM_CPU_PART_ARM1176:
-               ret = armv6pmu_init(pmu);
++              ret = armv6_1176_pmu_init(pmu);
 +              break;
 +      case ARM_CPU_PART_ARM11MPCORE:
 +              ret = armv6mpcore_pmu_init(pmu);
 +              break;
 +      case ARM_CPU_PART_CORTEX_A8:
 +              ret = armv7_a8_pmu_init(pmu);
 +              break;
 +      case ARM_CPU_PART_CORTEX_A9:
 +              ret = armv7_a9_pmu_init(pmu);
 +              break;
 +
 +      default:
 +              if (read_cpuid_implementor() == ARM_CPU_IMP_INTEL) {
 +                      switch (xscale_cpu_arch_version()) {
 +                      case ARM_CPU_XSCALE_ARCH_V1:
 +                              ret = xscale1pmu_init(pmu);
 +                              break;
 +                      case ARM_CPU_XSCALE_ARCH_V2:
 +                              ret = xscale2pmu_init(pmu);
 +                              break;
 +                      }
                }
 +              break;
        }
  
        put_cpu();
Simple merge