From patchwork Tue Feb 11 15:01:04 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 24464 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1DC3A203F3 for ; Tue, 11 Feb 2014 15:01:34 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id v10sf16407479pde.1 for ; Tue, 11 Feb 2014 07:01:34 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:sender:precedence:list-id:x-original-sender :x-original-authentication-results:mailing-list:list-post:list-help :list-archive:list-unsubscribe; bh=BWixteAPQrKViAKgdIwk2Vu44+c17T4U9d2sw1jkrAI=; b=C1ZJwtC0BvmSRbf5Qy+ddQ1yLwHTRZGVejbR7UIF4Irxk8X5b9oudtRVIynpD1FOKE VYQeoLKq2gHKtVxgI//TZzCmLHcmx/teL6tDTDX69+Fj/Ee6u6PidtYcodWM5huA0SIp oXlRpluEYJpB10G1Oj9YjF4fU+PbztQEmqSKX8RjuPukPCO8mQgmccRoXv7h4sGsHSLB ODv5lJ19j40/8Fta+BsgMrEBkQFiZhXH/EaQ5ZPwjOnQBqe96Fr2Zb1mCLem8F9E57ox hWqvgY6p8WAF4923QEsovHrlDIuCWC8h9E3NRSZ9HCBc2MiGia3QUxoJ3PPsUETq3pvS FLJg== X-Gm-Message-State: ALoCoQkQ54BHYkyM95aTD8kQKfX36gUSqSRw1P84vAY0NZF7Plb42Ud2tT8CuNbbx5sL7JD+gotJ X-Received: by 10.68.201.134 with SMTP id ka6mr6539275pbc.4.1392130893291; Tue, 11 Feb 2014 07:01:33 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.82.148 with SMTP id h20ls978654qgd.36.gmail; Tue, 11 Feb 2014 07:01:32 -0800 (PST) X-Received: by 10.58.94.195 with SMTP id de3mr530163veb.39.1392130892931; Tue, 11 Feb 2014 07:01:32 -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 b7si5996742vej.70.2014.02.11.07.01.32 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 07:01:32 -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 w20so6096806vbb.27 for ; Tue, 11 Feb 2014 07:01:32 -0800 (PST) X-Received: by 10.58.235.129 with SMTP id um1mr29430346vec.17.1392130892576; Tue, 11 Feb 2014 07:01:32 -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 u4csp252617vcz; Tue, 11 Feb 2014 07:01:32 -0800 (PST) X-Received: by 10.66.142.170 with SMTP id rx10mr33505708pab.117.1392130890858; Tue, 11 Feb 2014 07:01:30 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id va10si19229071pbc.308.2014.02.11.07.01.21; Tue, 11 Feb 2014 07:01:21 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751767AbaBKPBK (ORCPT + 27 others); Tue, 11 Feb 2014 10:01:10 -0500 Received: from mail-la0-f52.google.com ([209.85.215.52]:34197 "EHLO mail-la0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750752AbaBKPBI (ORCPT ); Tue, 11 Feb 2014 10:01:08 -0500 Received: by mail-la0-f52.google.com with SMTP id c6so5820722lan.25 for ; Tue, 11 Feb 2014 07:01:07 -0800 (PST) X-Received: by 10.152.205.11 with SMTP id lc11mr26936159lac.29.1392130866952; Tue, 11 Feb 2014 07:01:06 -0800 (PST) Received: from localhost.localdomain (AToulouse-654-1-479-183.w86-201.abo.wanadoo.fr. [86.201.194.183]) by mx.google.com with ESMTPSA id t5sm28003474lat.6.2014.02.11.07.01.05 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 11 Feb 2014 07:01:06 -0800 (PST) From: Daniel Lezcano To: mingo@kernel.org, peterz@infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] sched/fair: Remove idle_balance() declaration in sched.h Date: Tue, 11 Feb 2014 16:01:04 +0100 Message-Id: <1392130864-4416-1-git-send-email-daniel.lezcano@linaro.org> X-Mailer: git-send-email 1.7.9.5 Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: daniel.lezcano@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 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , The idle_balance() function is called within a #ifdef CONFIG_SMP section. Remove its declaration in sched.h for !CONFIG_SMP because it is pointless. Signed-off-by: Daniel Lezcano --- kernel/sched/sched.h | 6 ------ 1 file changed, 6 deletions(-) diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 1bf34c2..0eda78b 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -1168,12 +1168,6 @@ extern int idle_balance(struct rq *this_rq); extern void idle_enter_fair(struct rq *this_rq); extern void idle_exit_fair(struct rq *this_rq); -#else /* CONFIG_SMP */ - -static inline void idle_balance(int cpu, struct rq *rq) -{ -} - #endif extern void sysrq_sched_debug_show(void);