<br><font size=2><tt><br>
This patch fixes the cbe pm signal routing problem.</tt></font>
<br>
<br><font size=2><tt>We can confirm the fix by the following oprofile event parameter.</tt></font>
<br><font size=2><tt>"opcontrol --event=cache_hit:10000:0x42"<br>
<br>
Signed-off-by: Takashi Yamamoto <Takashi02_Yamamoto@hq.scei.sony.co.jp></tt></font>
<br>
<br><font size=2 face="sans-serif">Index: linux-2.6.22.1/arch/powerpc/oprofile/op_model_cell.c<br>
===================================================================<br>
--- linux-2.6.22.1.orig/arch/powerpc/oprofile/op_model_cell.c<br>
+++ linux-2.6.22.1/arch/powerpc/oprofile/op_model_cell.c<br>
@@ -291,13 +291,13 @@ static void set_pm_event(u32 ctr, int ev<br>
for (i = 0; i < NUM_TRACE_BUS_WORDS; i++) {<br>
if (bus_word & (1 << i)) {<br>
pm_regs.debug_bus_control |=<br>
- (bus_type << (31 - (2 * i) + 1));<br>
+ (bus_type << (30 - (2 * i)));<br>
<br>
for (j = 0; j < NUM_INPUT_BUS_WORDS; j++) {<br>
if (input_bus[j] == 0xff) {<br>
input_bus[j] = i;<br>
pm_regs.group_control |=<br>
- (i << (31 - i));<br>
+ (input_bus[j] << (30 - (2 * j)));<br>
break;<br>
}<br>
}</font>