Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1176890
| Path | csiph.com!aioe.org!news.servidellagleba.it!bofh.it!news.nic.it!robomod |
|---|---|
| From | Jisheng Zhang <jszhang@marvell.com> |
| Newsgroups | linux.kernel |
| Subject | [RFC PATCH 2/3] arm: psci: enable PSCI on UP systems |
| Date | Sun, 05 Jul 2015 10:50:03 +0200 |
| Message-ID | <pINMD-Ad-43@gated-at.bofh.it> (permalink) |
| References | <pINCW-wQ-13@gated-at.bofh.it> |
| X-Original-To | <linux@arm.linux.org.uk>, <will.deacon@arm.com>, <mark.rutland@arm.com>, <daniel.lezcano@linaro.org>, <Catalin.Marinas@arm.com>, <Lorenzo.Pieralisi@arm.com> |
| X-Mailer | git-send-email 2.1.4 |
| MIME-Version | 1.0 |
| Content-Type | text/plain |
| X-Proofpoint-Virus-Version | vendor=fsecure engine=2.50.10432:,, definitions=2015-07-04_09:,, signatures=0 |
| X-Proofpoint-Spam-Details | rule=outbound_notspam policy=outbound score=0 kscore.is_bulkscore=0 kscore.compositescore=1 compositescore=0.9 suspectscore=0 malwarescore=0 phishscore=0 bulkscore=0 kscore.is_spamscore=0 rbsscore=0.9 spamscore=0 urlsuspectscore=0.9 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-1506180000 definitions=main-1507040233 |
| Sender | robomod@news.nic.it |
| List-ID | <linux-kernel.vger.kernel.org> |
| X-Mailing-List | linux-kernel@vger.kernel.org |
| Approved | robomod@news.nic.it |
| Lines | 48 |
| Organization | linux.* mail to news gateway |
| X-Original-Cc | <linux-arm-kernel@lists.infradead.org>, <linux-kernel@vger.kernel.org>, Jisheng Zhang <jszhang@marvell.com> |
| X-Original-Date | Sat, 4 Jul 2015 21:01:49 +0800 |
| X-Original-Message-ID | <1436014910-1201-3-git-send-email-jszhang@marvell.com> |
| X-Original-References | <1436014910-1201-1-git-send-email-jszhang@marvell.com> |
| X-Original-Sender | linux-kernel-owner@vger.kernel.org |
| Xref | aioe.org linux.kernel:1176890 |
Show key headers only | View raw
This is to make calls like eg cpu_suspend can be made functional on UP too.
Signed-off-by: Jisheng Zhang <jszhang@marvell.com>
---
arch/arm/kernel/Makefile | 5 +----
arch/arm/kernel/psci.c | 2 ++
2 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/arch/arm/kernel/Makefile b/arch/arm/kernel/Makefile
index c57b2c0..2b1a60c 100644
--- a/arch/arm/kernel/Makefile
+++ b/arch/arm/kernel/Makefile
@@ -88,9 +88,6 @@ obj-$(CONFIG_DEBUG_LL) += debug.o
obj-$(CONFIG_EARLY_PRINTK) += early_printk.o
obj-$(CONFIG_ARM_VIRT_EXT) += hyp-stub.o
-ifeq ($(CONFIG_ARM_PSCI),y)
-obj-y += psci-call.o
-obj-$(CONFIG_SMP) += psci.o
-endif
+obj-$(CONFIG_ARM_PSCI) += psci-call.o psci.o
extra-y := $(head-y) vmlinux.lds
diff --git a/arch/arm/kernel/psci.c b/arch/arm/kernel/psci.c
index 61c04b0..7f6ff02 100644
--- a/arch/arm/kernel/psci.c
+++ b/arch/arm/kernel/psci.c
@@ -47,6 +47,7 @@
*
*/
+#ifdef CONFIG_SMP
extern void secondary_startup(void);
static int psci_boot_secondary(unsigned int cpu, struct task_struct *idle)
@@ -128,3 +129,4 @@ struct smp_operations __initdata psci_smp_ops = {
.cpu_kill = psci_cpu_kill,
#endif
};
+#endif
--
2.1.4
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[RFC PATCH 0/3] arm: psci: implement cpuidle_ops Jisheng Zhang <jszhang@marvell.com> - 2015-07-05 10:40 +0200 [RFC PATCH 1/3] arm: psci: rename psci_smp.c to psci.c Jisheng Zhang <jszhang@marvell.com> - 2015-07-05 10:50 +0200 [RFC PATCH 3/3] arm: psci: add cpuidle_ops support Jisheng Zhang <jszhang@marvell.com> - 2015-07-05 10:50 +0200 [RFC PATCH 2/3] arm: psci: enable PSCI on UP systems Jisheng Zhang <jszhang@marvell.com> - 2015-07-05 10:50 +0200
csiph-web