[POWERPC] Fix oprofile support for e500 in arch/powerpc
Fixed a compile error in building the 85xx support with oprofile, and in the process cleaned up some issues with the fsl_booke performance monitor code. * Reorganized FSL Book-E performance monitoring code so that the 7450 wouldn't be built if the e500 was, and cleaned it up so it was more self-contained. * Added a cpu_setup function for FSL Book-E. The original cpu_setup function prototype had no arguments, assuming that the reg_setup function would copy the required information into variables which represented the registers. This was silly for e500, since it has 1 register per counter (rather than 3 for all counters), so the code has been restructured to have cpu_setup take the current counter config array as an argument, with op_powerpc_setup() invoking op_powerpc_cpu_setup() through on_each_cpu(), and op_powerpc_cpu_setup() invoking the model-specific cpu_setup function with an argument. The argument is ignored on all other platforms at present. * Fixed a confusing line where a trinary operator only had two arguments Signed-off-by:Andrew Fleming <afleming@freescale.com> Signed-off-by:
Paul Mackerras <paulus@samba.org>
Showing
- arch/powerpc/kernel/Makefile 0 additions, 1 deletionarch/powerpc/kernel/Makefile
- arch/powerpc/kernel/perfmon_fsl_booke.c 0 additions, 221 deletionsarch/powerpc/kernel/perfmon_fsl_booke.c
- arch/powerpc/kernel/pmc.c 1 addition, 1 deletionarch/powerpc/kernel/pmc.c
- arch/powerpc/oprofile/Makefile 1 addition, 1 deletionarch/powerpc/oprofile/Makefile
- arch/powerpc/oprofile/common.c 8 additions, 2 deletionsarch/powerpc/oprofile/common.c
- arch/powerpc/oprofile/op_model_7450.c 1 addition, 1 deletionarch/powerpc/oprofile/op_model_7450.c
- arch/powerpc/oprofile/op_model_fsl_booke.c 136 additions, 34 deletionsarch/powerpc/oprofile/op_model_fsl_booke.c
- arch/powerpc/oprofile/op_model_power4.c 1 addition, 1 deletionarch/powerpc/oprofile/op_model_power4.c
- arch/powerpc/oprofile/op_model_rs64.c 1 addition, 1 deletionarch/powerpc/oprofile/op_model_rs64.c
- include/asm-powerpc/oprofile_impl.h 85 additions, 2 deletionsinclude/asm-powerpc/oprofile_impl.h
- include/asm-powerpc/pmc.h 0 additions, 13 deletionsinclude/asm-powerpc/pmc.h
Loading
Please register or sign in to comment