1. 17 5月, 2010 2 次提交
    • W
      ARM: 6069/1: perf-events: use numeric ID to identify PMU · 181193f3
      Will Deacon 提交于
      The ARM perf-events framework provides support for a number of different
      PMUs using struct arm_pmu. The char *name field of this struct can be
      used to identify the PMU, but this is cumbersome if used outside of perf.
      
      This patch replaces the name string for a PMU with an enum, which holds
      a unique ID for the PMU being represented. This ID can be used to index
      an array of names within perf, so no functionality is lost. The presence
      of the ID field, allows other kernel subsystems [currently oprofile] to
      use their own mappings for the PMU name.
      
      Cc: Jean Pihet <jpihet@mvista.com>
      Acked-by: NJamie Iles <jamie.iles@picochip.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      181193f3
    • W
      ARM: 6064/1: pmu: register IRQs at runtime · 49c006b9
      Will Deacon 提交于
      The current PMU infrastructure for ARM requires that the IRQs for the PMU
      device are fixed at compile time and are selected based on the ARCH_ or MACH_ flags. This has the disadvantage of tying the Kernel down to a
      particular board as far as profiling is concerned.
      
      This patch replaces the compile-time IRQ registration with a runtime mechanism which allows the IRQs to be registered with the framework as
      a platform_device.
      
      A further advantage of this change is that there is scope for registering
      different types of performance counters in the future by changing the id
      of the platform_device and attaching different resources to it.
      Acked-by: NJamie Iles <jamie.iles@picochip.com>
      Signed-off-by: NWill Deacon <will.deacon@arm.com>
      Signed-off-by: NRussell King <rmk+kernel@arm.linux.org.uk>
      49c006b9
  2. 13 3月, 2010 2 次提交
  3. 10 3月, 2010 1 次提交
  4. 13 2月, 2010 2 次提交