* [PATCH] Move Cross VPE writes to a latter stage in loop after a TC is assigned to VPE.
@ 2009-07-09 2:22 Raghu Gandham
2009-07-09 7:21 ` Ralf Baechle
0 siblings, 1 reply; 2+ messages in thread
From: Raghu Gandham @ 2009-07-09 2:22 UTC (permalink / raw)
To: linux-mips; +Cc: raghu, chris
From: Kurt Martin <kurt@mips.com>
This patch was part of the series of patches I sent previously. In this version, I
accomodated and tested Kevin D.Kissel's suggestion. Also the case when
no TCs are assigned to a VPE is checked.
Signed-off-by: Chris Dearman <chris@mips.com>
Signed-off-by: Raghu Gandham <raghu@mips.com>
---
arch/mips/kernel/smtc.c | 13 ++++++++-----
1 files changed, 8 insertions(+), 5 deletions(-)
diff --git a/arch/mips/kernel/smtc.c b/arch/mips/kernel/smtc.c
index 8a0626c..c16bb6d 100644
--- a/arch/mips/kernel/smtc.c
+++ b/arch/mips/kernel/smtc.c
@@ -465,11 +465,8 @@ void smtc_prepare_cpus(int cpus)
smtc_configure_tlb();
for (tc = 0, vpe = 0 ; (vpe < nvpe) && (tc < ntc) ; vpe++) {
- /*
- * Set the MVP bits.
- */
- settc(tc);
- write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() | VPECONF0_MVP);
+ if (tcpervpe[vpe] == 0)
+ continue;
if (vpe != 0)
printk(", ");
printk("VPE %d: TC", vpe);
@@ -488,6 +485,12 @@ void smtc_prepare_cpus(int cpus)
}
if (vpe != 0) {
/*
+ * Allow this VPE to control others.
+ */
+ write_vpe_c0_vpeconf0(read_vpe_c0_vpeconf0() |
+ VPECONF0_MVP);
+
+ /*
* Clear any stale software interrupts from VPE's Cause
*/
write_vpe_c0_cause(0);
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Move Cross VPE writes to a latter stage in loop after a TC is assigned to VPE.
2009-07-09 2:22 [PATCH] Move Cross VPE writes to a latter stage in loop after a TC is assigned to VPE Raghu Gandham
@ 2009-07-09 7:21 ` Ralf Baechle
0 siblings, 0 replies; 2+ messages in thread
From: Ralf Baechle @ 2009-07-09 7:21 UTC (permalink / raw)
To: Raghu Gandham; +Cc: linux-mips, chris
On Wed, Jul 08, 2009 at 07:22:35PM -0700, Raghu Gandham wrote:
Applied. Thanks, Raghu!!
Ralf
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-07-09 7:21 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-07-09 2:22 [PATCH] Move Cross VPE writes to a latter stage in loop after a TC is assigned to VPE Raghu Gandham
2009-07-09 7:21 ` Ralf Baechle
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox