[Cbe-oss-dev] [patch 2/2] cell: make oprofile using the real cbe_node_to_cpu function

Christian Krafft krafft at de.ibm.com
Sat Feb 24 06:20:35 EST 2007


This patches oprofile code to use cbe_regs for smt calculations.

Signed-off-by: Christian Krafft <krafft at de.ibm.com>

Index: linux/arch/powerpc/oprofile/op_model_cell.c
===================================================================
--- linux.orig/arch/powerpc/oprofile/op_model_cell.c
+++ linux/arch/powerpc/oprofile/op_model_cell.c
@@ -37,6 +37,7 @@
 #include <asm/system.h>
 
 #include "../platforms/cell/interrupt.h"
+#include "../platforms/cell/cbe_regs.h"
 #include "cell/pr_util.h"
 
 /* spu_cycle_reset is the number of cycles between samples.
Index: linux/include/asm-powerpc/cell-pmu.h
===================================================================
--- linux.orig/include/asm-powerpc/cell-pmu.h
+++ linux/include/asm-powerpc/cell-pmu.h
@@ -97,11 +97,6 @@ extern void cbe_disable_pm_interrupts(u3
 extern u32  cbe_get_and_clear_pm_interrupts(u32 cpu);
 extern void cbe_sync_irq(int node);
 
-/* Utility functions, macros */
-extern u32 cbe_get_hw_thread_id(int cpu);
-
-#define cbe_cpu_to_node(cpu) ((cpu) >> 1)
-
 #define CBE_COUNT_SUPERVISOR_MODE       0
 #define CBE_COUNT_HYPERVISOR_MODE       1
 #define CBE_COUNT_PROBLEM_MODE          2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.ozlabs.org/pipermail/cbe-oss-dev/attachments/20070223/348db4d9/attachment.pgp>


More information about the cbe-oss-dev mailing list