| To: | Ralf Baechle <ralf@linux-mips.org>, LKML <linux-kernel@vger.kernel.org> |
|---|---|
| Subject: | [RFC patch] MIPS: select correct tc |
| From: | Hillf Danton <dhillf@gmail.com> |
| Date: | Thu, 4 Aug 2011 22:38:31 +0800 |
| Dkim-signature: | v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; bh=JpmtN0F+lYQC2pnx0bv+kLkCPfJOh15xhq1vXR2W3Sw=; b=DWS9QrSlv+PPkL2gPZbXGDE+hISbXXh8nIeYrHz3n6iVKlw1KJKMbrW+6AGWdZtjwQ mWuUgJgxx2A7fAlGGrKEsE1szL3B/KOaycbd7vBjTy7f5IwA8Oyzc+oOs28Sh4klGD8o aoiUgE5MRZ9uIF44BTI02JqrOVXms0B2ISSnw= |
| Resent-date: | Thu, 4 Aug 2011 16:54:57 +0100 |
| Resent-from: | Ralf Baechle <ralf@linux-mips.org> |
| Resent-message-id: | <20110804155457.GB5297@linux-mips.org> |
| Resent-to: | linux-mips@linux-mips.org |
| Sender: | linux-mips-bounce@linux-mips.org |
If we could find tc on the tc list for @index, the found tc should be returned.
Signed-off-by: Hillf Danton <dhillf@gmail.com>
---
arch/mips/kernel/vpe.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c
index dbb6b40..044b700 100644
--- a/arch/mips/kernel/vpe.c
+++ b/arch/mips/kernel/vpe.c
@@ -192,7 +192,7 @@ static struct tc *get_tc(int index)
}
spin_unlock(&vpecontrol.tc_list_lock);
- return NULL;
+ return res;
}
/* allocate a vpe and associate it with this minor (or index) */
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | Re: [RFC patch] MIPS: select correct tc, Ralf Baechle |
|---|---|
| Next by Date: | [RFC patch] MIPS: deduplicate comment for i8259, Hillf Danton |
| Previous by Thread: | [PATCH 3/3 v2] MIPS: introduce CPU_R4K_CACHE_TLB, Florian Fainelli |
| Next by Thread: | Re: [RFC patch] MIPS: select correct tc, Ralf Baechle |
| Indexes: | [Date] [Thread] [Top] [All Lists] |