[PATCH][2.6.11-mm3] perfctr API update 8/9: cpu_control access, ppc32

2005-03-12 Thread Mikael Pettersson
- Implement perfctr_cpu_control_write()/read() in-kernel API. Only handle PERFCTR_DOMAIN_CPU_REGS, as the other domains will be handled in generic code. - Implement get_reg_offset() via a static table. The ppc32 SPR numbers we use don't form a nice dense range, alas. This depends on the

[PATCH][2.6.11-mm3] perfctr API update 8/9: cpu_control access, ppc32

2005-03-12 Thread Mikael Pettersson
- Implement perfctr_cpu_control_write()/read() in-kernel API. Only handle PERFCTR_DOMAIN_CPU_REGS, as the other domains will be handled in generic code. - Implement get_reg_offset() via a static table. The ppc32 SPR numbers we use don't form a nice dense range, alas. This depends on the