From patchwork Thu Jun 5 05:15:53 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 4303071 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 9B8DABEEA7 for ; Thu, 5 Jun 2014 05:13:53 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id D8176201F7 for ; Thu, 5 Jun 2014 05:13:52 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 150E920179 for ; Thu, 5 Jun 2014 05:13:52 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752070AbaFEFNv (ORCPT ); Thu, 5 Jun 2014 01:13:51 -0400 Received: from mail-pb0-f46.google.com ([209.85.160.46]:43866 "EHLO mail-pb0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751365AbaFEFNu (ORCPT ); Thu, 5 Jun 2014 01:13:50 -0400 Received: by mail-pb0-f46.google.com with SMTP id rq2so564398pbb.33 for ; Wed, 04 Jun 2014 22:13:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:date:message-id:in-reply-to:references:subject; bh=Y2wqM6jXsZC9IdszbZkg5MvFA5a7K/2XriNY1CQiGVs=; b=tt3NWW/ociQ3bY0rsNlWpfgOVthwWJoBGtR410XwQ0/J9LnDSy/VoDPaFRib/Xrl53 WRfMFUU4a2tYZSkXyEBfnn1hON+K8uubzKqCCk8Hal8fOTO36J6//52y0aO2UNngOlNp 4dHpq+ltR85orh0Vcp+rmFu0Rt7poqYf6C4qsLK2vXlRbDAtPH77Tg6IN9juIYPWtJOs khDwa4TnnwIXyGIXyPY+JXmYeuFGsTFsj6TS9RfhLCyWEZBdbXhX1SvgF9lzH65CtEOV rlRWCdZu/Vf548QBxeLUaXac4uRHwcbt3jEy8ELXGNfkZSC6/7TeInDLn0LfJWqrBZyv k6uA== X-Received: by 10.68.139.36 with SMTP id qv4mr72900458pbb.82.1401945229588; Wed, 04 Jun 2014 22:13:49 -0700 (PDT) Received: from [127.0.0.1] (s214090.ppp.asahi-net.or.jp. [220.157.214.90]) by mx.google.com with ESMTPSA id om6sm17675802pbc.43.2014.06.04.22.13.47 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 04 Jun 2014 22:13:48 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , horms@verge.net.au, keita.kobayashi.ym@renesas.com Date: Thu, 05 Jun 2014 14:15:53 +0900 Message-Id: <20140605051553.18075.47511.sendpatchset@w520> In-Reply-To: <20140605051505.18075.76727.sendpatchset@w520> References: <20140605051505.18075.76727.sendpatchset@w520> Subject: [PATCH 06/08] ARM: shmobile: Setup APMU for suspend in non-SMP case Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Magnus Damm Extend the APMU specific Suspend-to-RAM code to initialize the APMU when SMP is disabled in the kernel config. Signed-off-by: Magnus Damm --- arch/arm/mach-shmobile/platsmp-apmu.c | 4 ++++ 1 file changed, 4 insertions(+) -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html --- 0006/arch/arm/mach-shmobile/platsmp-apmu.c +++ work/arch/arm/mach-shmobile/platsmp-apmu.c 2014-06-05 12:52:50.000000000 +0900 @@ -242,6 +242,10 @@ static int shmobile_smp_apmu_enter_suspe void __init shmobile_smp_apmu_suspend_init(void) { +#ifndef CONFIG_SMP + /* initialize APMU for non-SMP case */ + shmobile_smp_apmu_prepare_cpus(1); +#endif shmobile_suspend_ops.enter = shmobile_smp_apmu_enter_suspend; } #else