| To: | <linux-mips@linux-mips.org>, <ralf@linux-mips.org>, <kevink@paralogos.com>, <macro@linux-mips.org>, <john@phrozen.org> |
|---|---|
| Subject: | [PATCH v3 4/5] MIPS: let amon_cpu_start() report results |
| From: | Deng-Cheng Zhu <dczhu@mips.com> |
| Date: | Tue, 4 Dec 2012 15:54:31 -0800 |
| Cc: | <dczhu@mips.com> |
| In-reply-to: | <1354665272-22759-1-git-send-email-dczhu@mips.com> |
| List-archive: | <http://www.linux-mips.org/archives/linux-mips/> |
| List-help: | <mailto:ecartis@linux-mips.org?Subject=help> |
| List-id: | linux-mips <linux-mips.eddie.linux-mips.org> |
| List-owner: | <mailto:ralf@linux-mips.org> |
| List-post: | <mailto:linux-mips@linux-mips.org> |
| List-software: | Ecartis version 1.0.0 |
| List-subscribe: | <mailto:ecartis@linux-mips.org?subject=subscribe%20linux-mips> |
| List-unsubscribe: | <mailto:ecartis@linux-mips.org?subject=unsubscribe%20linux-mips> |
| References: | <1354665272-22759-1-git-send-email-dczhu@mips.com> |
| Sender: | linux-mips-bounce@linux-mips.org |
Change the return type of amon_cpu_start() from void to int.
Signed-off-by: Deng-Cheng Zhu <dczhu@mips.com>
---
arch/mips/include/asm/amon.h | 2 +-
arch/mips/mti-malta/malta-amon.c | 8 +++++---
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/arch/mips/include/asm/amon.h b/arch/mips/include/asm/amon.h
index c3dc1a6..c8af6b0 100644
--- a/arch/mips/include/asm/amon.h
+++ b/arch/mips/include/asm/amon.h
@@ -3,5 +3,5 @@
*/
int amon_cpu_avail(int);
-void amon_cpu_start(int, unsigned long, unsigned long,
+int amon_cpu_start(int, unsigned long, unsigned long,
unsigned long, unsigned long);
diff --git a/arch/mips/mti-malta/malta-amon.c b/arch/mips/mti-malta/malta-amon.c
index 469d9b0..fcd69cb 100644
--- a/arch/mips/mti-malta/malta-amon.c
+++ b/arch/mips/mti-malta/malta-amon.c
@@ -48,7 +48,7 @@ int amon_cpu_avail(int cpu)
return 1;
}
-void amon_cpu_start(int cpu,
+int amon_cpu_start(int cpu,
unsigned long pc, unsigned long sp,
unsigned long gp, unsigned long a0)
{
@@ -56,10 +56,10 @@ void amon_cpu_start(int cpu,
(struct cpulaunch *)CKSEG0ADDR(CPULAUNCH);
if (!amon_cpu_avail(cpu))
- return;
+ return -1;
if (cpu == smp_processor_id()) {
pr_debug("launch: I am cpu%d!\n", cpu);
- return;
+ return -1;
}
launch += cpu;
@@ -78,4 +78,6 @@ void amon_cpu_start(int cpu,
;
smp_rmb(); /* Target will be updating flags soon */
pr_debug("launch: cpu%d gone!\n", cpu);
+
+ return 0;
}
--
1.7.1
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [PATCH v3 5/5] MIPS: APRP (APSP): malta board support, Deng-Cheng Zhu |
|---|---|
| Next by Date: | [PATCH v3 01/11] ssb/bcma: add common header for watchdog, Hauke Mehrtens |
| Previous by Thread: | [PATCH v3 5/5] MIPS: APRP (APSP): malta board support, Deng-Cheng Zhu |
| Next by Thread: | [PATCH v3 00/11] watchdog/bcm47xx/bcma/ssb: add support for SoCs with PMU, Hauke Mehrtens |
| Indexes: | [Date] [Thread] [Top] [All Lists] |