]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] cell: PPU Oprofile cleanup patch
authorCarl Love <carll@us.ibm.com>
Tue, 13 Feb 2007 21:02:02 +0000 (22:02 +0100)
committerArnd Bergmann <arnd@klappe.arndb.de>
Tue, 13 Feb 2007 21:03:06 +0000 (22:03 +0100)
commitbcb63e25ed3c56ee40cca4d18fbaac1d2a40c1d6
treed82fcdbfa5b262747e0b9548d526305a3fe0d8a0
parent128b8546a83a9e37448bc126e1045dc1db291165
[POWERPC] cell: PPU Oprofile cleanup patch

This is a clean up patch that includes the following changes:

 -Some comments were added to clarify the code based on feedback
  from the community.
 -The write_pm_cntrl() and set_count_mode() were passed a
  structure element from a global variable.  The argument was
  removed so the functions now just operate on the global directly.
 -The set_pm_event() function call in the cell_virtual_cntr()
  routine was moved to a for-loop before the for_each_cpu loop

Signed-off-by: Carl Love <carll@us.ibm.com>
Signed-off-by: Maynard Johnson <mpjohn@us.ibm.com>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/oprofile/op_model_cell.c
arch/powerpc/platforms/cell/pmu.c
include/asm-powerpc/cell-pmu.h