From patchwork Thu Oct 29 10:52:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Magnus Damm X-Patchwork-Id: 56447 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9TAue7f016657 for ; Thu, 29 Oct 2009 10:57:05 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752319AbZJ2K5A (ORCPT ); Thu, 29 Oct 2009 06:57:00 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754056AbZJ2K47 (ORCPT ); Thu, 29 Oct 2009 06:56:59 -0400 Received: from mail-yw0-f202.google.com ([209.85.211.202]:42645 "EHLO mail-yw0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752319AbZJ2K47 (ORCPT ); Thu, 29 Oct 2009 06:56:59 -0400 Received: by mail-yw0-f202.google.com with SMTP id 40so1518287ywh.33 for ; Thu, 29 Oct 2009 03:57:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:date:message-id :in-reply-to:references:subject; bh=rUfYSDxgaT8EJPw9uOKGZfXItm8t17DpfNBrsWNEMRg=; b=UrNrnevIKcyHho3rvLzYqaR1jj688kUh6ngGRltwHiehKJme0K2vRTRrJQAxxaL1yH rTNYGz1v5LmyvFKpnF8R1A9CuwNq6FOLG49Gqrv8+XuTABnr21KIBC1BEcSLAOcP3ASw tt/jXhlP3GGZTEQfICkAt7+LbNtxzCuDyuH+E= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:date:message-id:in-reply-to:references:subject; b=SM63TOB53gokE72SmO1fdBTERyC210d/I4fkrlZXqwfGWfzz5I+2owWkG87807R97c VkafXCtlbOhnl8iYcZaPfXfZXf25etIv3oBvFCcdcqwoWMbhJV63jFPEst2QL42lRh09 NVzndXkAVSDqp35MylZoONCuuCF5zn6e4pU1w= Received: by 10.150.19.5 with SMTP id 5mr30917ybs.103.1256813824488; Thu, 29 Oct 2009 03:57:04 -0700 (PDT) Received: from rxone.opensource.se (49.14.32.202.bf.2iij.net [202.32.14.49]) by mx.google.com with ESMTPS id 7sm695455ywf.10.2009.10.29.03.57.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Thu, 29 Oct 2009 03:57:03 -0700 (PDT) From: Magnus Damm To: linux-sh@vger.kernel.org Cc: Magnus Damm , lethal@linux-sh.org Date: Thu, 29 Oct 2009 19:52:06 +0900 Message-Id: <20091029105206.29078.85084.sendpatchset@rxone.opensource.se> In-Reply-To: <20091029105131.29078.26418.sendpatchset@rxone.opensource.se> References: <20091029105131.29078.26418.sendpatchset@rxone.opensource.se> Subject: [PATCH 04/07] sh: Allow boards to register memory pre/post sleep code Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org --- 0008/arch/sh/include/asm/suspend.h +++ work/arch/sh/include/asm/suspend.h 2009-10-28 18:44:53.000000000 +0900 @@ -30,6 +30,10 @@ extern struct atomic_notifier_head sh_mo #define SH_MOBILE_PRE(x) (x) #define SH_MOBILE_POST(x) (-(x)) +/* board code registration function for self-refresh assembly snippets */ +void sh_mobile_register_self_refresh(unsigned long flags, + void *pre_start, void *pre_end, + void *post_start, void *post_end); #endif /* flags passed to assembly suspend code */ --- 0008/arch/sh/kernel/cpu/shmobile/pm.c +++ work/arch/sh/kernel/cpu/shmobile/pm.c 2009-10-28 18:44:53.000000000 +0900 @@ -60,6 +60,12 @@ void sh_mobile_call_standby(unsigned lon mode, NULL); } +void sh_mobile_register_self_refresh(unsigned long flags, + void *pre_start, void *pre_end, + void *post_start, void *post_end) +{ +} + static int sh_pm_enter(suspend_state_t state) { local_irq_disable();