Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 156394
b: refs/heads/master
c: d8e5f9f
h: refs/heads/master
v: v3
  • Loading branch information
Kurt Martin authored and Ralf Baechle committed Aug 3, 2009
1 parent 22791da commit 5c17585
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 008ee96f1204225503934cb57ac38c49f519c7ab
refs/heads/master: d8e5f9fe5dab0e07985f2456cb6cc57788f53131
13 changes: 8 additions & 5 deletions trunk/arch/mips/kernel/smtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -487,6 +484,12 @@ void smtc_prepare_cpus(int cpus)
tc++;
}
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
*/
Expand Down

0 comments on commit 5c17585

Please sign in to comment.