From patchwork Mon Jan 27 06:08:18 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nicolas Pitre X-Patchwork-Id: 23727 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pb0-f69.google.com (mail-pb0-f69.google.com [209.85.160.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 0E0A3203C4 for ; Mon, 27 Jan 2014 06:13:29 +0000 (UTC) Received: by mail-pb0-f69.google.com with SMTP id md12sf13771343pbc.0 for ; Sun, 26 Jan 2014 22:13:28 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version:sender :errors-to:x-original-sender:x-original-authentication-results :mailing-list:content-type:content-transfer-encoding; bh=j8V5zvAq/cf90MFxUCUgOCBO7Ik/VfRAzpy5CZngVqE=; b=V21Fl9tpYA34DR1J+IUGhHmXqB5+El2EUjWpRtX2t4jOcfPBFdQBMDEgWIeMI+e3ml X2Ual8wH8P/4EDYbE2SHgImaOBSubotNTJ4sBo2Hsdo7zaRv3lS2TmzCOkCKpQeYda5I UNbtaY5nksIcRzGFyMopSs89d/eIG9w2Li4q+6xBXZKb2NblSBJKStdRAGfnEOcRAUQ1 scMh7joqzs7giKjFD83aB8yZDlauLhiY9oKsLZTr8yrxpofAve+jvP3uSNuCQOpuIQNh qkJtk5uRLZQi1QCJ7MLfdEU8J0B1/O4ElWOrQvxNHZjGfc12xMlWds6BeY8XiPg4G81T /cMg== X-Gm-Message-State: ALoCoQm6JdbMPHrXOlZQ4nLtRbUxFhh8lIutzmttsVcRWgDk60zaf9sYOMd3wrY+4WFmbqWtGOGi X-Received: by 10.66.189.228 with SMTP id gl4mr10540654pac.26.1390803208503; Sun, 26 Jan 2014 22:13:28 -0800 (PST) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.29.102 with SMTP id a93ls1322769qga.33.gmail; Sun, 26 Jan 2014 22:13:28 -0800 (PST) X-Received: by 10.52.33.84 with SMTP id p20mr496076vdi.31.1390803208379; Sun, 26 Jan 2014 22:13:28 -0800 (PST) Received: from mail-vb0-f54.google.com (mail-vb0-f54.google.com [209.85.212.54]) by mx.google.com with ESMTPS id ke3si100005veb.141.2014.01.26.22.13.28 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Sun, 26 Jan 2014 22:13:28 -0800 (PST) Received-SPF: neutral (google.com: 209.85.212.54 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.212.54; Received: by mail-vb0-f54.google.com with SMTP id w20so3180371vbb.27 for ; Sun, 26 Jan 2014 22:13:28 -0800 (PST) X-Received: by 10.52.89.173 with SMTP id bp13mr2357898vdb.5.1390803208302; Sun, 26 Jan 2014 22:13:28 -0800 (PST) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.174.196 with SMTP id u4csp106813vcz; Sun, 26 Jan 2014 22:13:27 -0800 (PST) X-Received: by 10.204.179.135 with SMTP id bq7mr21608526bkb.5.1390803207266; Sun, 26 Jan 2014 22:13:27 -0800 (PST) Received: from casper.infradead.org (casper.infradead.org. [2001:770:15f::2]) by mx.google.com with ESMTPS id nl4si12906888bkb.67.2014.01.26.22.13.26 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 26 Jan 2014 22:13:27 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:770:15f::2 as permitted sender) client-ip=2001:770:15f::2; Received: from merlin.infradead.org ([2001:4978:20e::2]) by casper.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1W7fP8-0002q3-5B; Mon, 27 Jan 2014 06:10:42 +0000 Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W7fOl-0003hr-GZ; Mon, 27 Jan 2014 06:10:19 +0000 Received: from relais.videotron.ca ([24.201.245.36]) by merlin.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1W7fO5-0003YP-IX for linux-arm-kernel@lists.infradead.org; Mon, 27 Jan 2014 06:09:40 +0000 Received: from yoda.home ([66.130.143.177]) by VL-VM-MR006.ip.videotron.ca (Oracle Communications Messaging Exchange Server 7u4-22.01 64bit (built Apr 21 2011)) with ESMTP id <0N0100CJZQFBKVJ0@VL-VM-MR006.ip.videotron.ca> for linux-arm-kernel@lists.infradead.org; Mon, 27 Jan 2014 01:09:11 -0500 (EST) Received: from xanadu.home (xanadu.home [192.168.2.2]) by yoda.home (Postfix) with ESMTP id 4158B2DA069E; Mon, 27 Jan 2014 01:09:11 -0500 (EST) From: Nicolas Pitre To: Russell King , Catalin Marinas , Benjamin Herrenschmidt , Paul Mundt , Thomas Gleixner , Ingo Molnar , Peter Zijlstra , "Rafael J. Wysocki" , Daniel Lezcano Subject: [PATCH 3/9] idle: no more arch_cpu_idle_prepare() users Date: Mon, 27 Jan 2014 01:08:18 -0500 Message-id: <1390802904-28399-4-git-send-email-nicolas.pitre@linaro.org> X-Mailer: git-send-email 1.8.4.108.g55ea5f6 In-reply-to: <1390802904-28399-1-git-send-email-nicolas.pitre@linaro.org> References: <1390802904-28399-1-git-send-email-nicolas.pitre@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20140127_010937_706030_577021ED X-CRM114-Status: GOOD ( 11.44 ) X-Spam-Score: -1.2 (-) X-Spam-Report: SpamAssassin version 3.3.2 on merlin.infradead.org summary: Content analysis details: (-1.2 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [24.201.245.36 listed in list.dnswl.org] 0.7 SPF_SOFTFAIL SPF: sender does not match SPF record (softfail) -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] Cc: linaro-kernel@lists.linaro.org, linux-pm@vger.kernel.org, linux-sh@vger.kernel.org, linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: nicolas.pitre@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.212.54 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 ... so we can get rid of it entirely. Signed-off-by: Nicolas Pitre --- include/linux/cpu.h | 1 - kernel/cpu/idle.c | 2 -- 2 files changed, 3 deletions(-) diff --git a/include/linux/cpu.h b/include/linux/cpu.h index 03e235ad1b..218fab7521 100644 --- a/include/linux/cpu.h +++ b/include/linux/cpu.h @@ -221,7 +221,6 @@ void cpu_idle(void); void cpu_idle_poll_ctrl(bool enable); void arch_cpu_idle(void); -void arch_cpu_idle_prepare(void); void arch_cpu_idle_enter(void); void arch_cpu_idle_exit(void); void arch_cpu_idle_dead(void); diff --git a/kernel/cpu/idle.c b/kernel/cpu/idle.c index 988573a9a3..4e327e211b 100644 --- a/kernel/cpu/idle.c +++ b/kernel/cpu/idle.c @@ -52,7 +52,6 @@ static inline int cpu_idle_poll(void) } /* Weak implementations for optional arch specific functions */ -void __weak arch_cpu_idle_prepare(void) { } void __weak arch_cpu_idle_enter(void) { } void __weak arch_cpu_idle_exit(void) { } void __weak arch_cpu_idle_dead(void) { } @@ -136,6 +135,5 @@ void cpu_startup_entry(enum cpuhp_state state) boot_init_stack_canary(); #endif __current_set_polling(); - arch_cpu_idle_prepare(); cpu_idle_loop(); }