From patchwork Mon Nov 3 10:30:19 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pang.xunlei" X-Patchwork-Id: 40013 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f69.google.com (mail-ee0-f69.google.com [74.125.83.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C43BF24530 for ; Mon, 3 Nov 2014 10:31:59 +0000 (UTC) Received: by mail-ee0-f69.google.com with SMTP id c41sf2651329eek.0 for ; Mon, 03 Nov 2014 02:31:58 -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:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=daVTDfnugDlbdF7MOpwjkNDQ0mN7yw0srsCgGIpZvXg=; b=mw7oWace5Zxs6RgCyisBJYcR3gCQMJXlyJPlj0gsIv0Fw7RRTU/FwJM0l0N8fgR/ub RL+ZTtKVU3otl6i5KMORgul3Xzww+NucMgOocudzQ755yLUrQBtlK5ngJiWVjYWFW4Ub 7adVrL7BGQMITNEtjJ6SiaT3I5nWt5pu4KOxp8O0mRAvBsDvam9kIH4rNiJHgO0E0QLl 4X1MrMBSjzLgBevcnIw734M83zd0WGWi/vAW+6bOaS2bMgA1g9lUxScq6ph+v17ixt5l Igf8/auxCGKgo33l0NzhYW0/2zap2TtlaaAiVhKhvOkLM5WV2R7lmh0fpK3AIUe4NA4o pLQw== X-Gm-Message-State: ALoCoQnXkq2MJrnzoWhZQ+GfYQvxwHgI39XJWh1AljxKDoG6+wxoV4h1Ll6GF7kiDar8a0h/7OoB X-Received: by 10.152.7.73 with SMTP id h9mr287844laa.6.1415010717950; Mon, 03 Nov 2014 02:31:57 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.19.227 with SMTP id i3ls580736lae.28.gmail; Mon, 03 Nov 2014 02:31:57 -0800 (PST) X-Received: by 10.152.5.100 with SMTP id r4mr49969930lar.26.1415010717654; Mon, 03 Nov 2014 02:31:57 -0800 (PST) Received: from mail-la0-f54.google.com (mail-la0-f54.google.com. [209.85.215.54]) by mx.google.com with ESMTPS id h5si31794522lam.129.2014.11.03.02.31.57 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 02:31:57 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) client-ip=209.85.215.54; Received: by mail-la0-f54.google.com with SMTP id s18so3776014lam.41 for ; Mon, 03 Nov 2014 02:31:57 -0800 (PST) X-Received: by 10.112.77.74 with SMTP id q10mr49282612lbw.66.1415010717250; Mon, 03 Nov 2014 02:31:57 -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.112.84.229 with SMTP id c5csp214127lbz; Mon, 3 Nov 2014 02:31:56 -0800 (PST) X-Received: by 10.68.213.138 with SMTP id ns10mr38999096pbc.50.1415010715749; Mon, 03 Nov 2014 02:31:55 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id yv8si15050690pac.79.2014.11.03.02.31.55 for ; Mon, 03 Nov 2014 02:31:55 -0800 (PST) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751435AbaKCKb1 (ORCPT + 25 others); Mon, 3 Nov 2014 05:31:27 -0500 Received: from mail-pd0-f177.google.com ([209.85.192.177]:39671 "EHLO mail-pd0-f177.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751175AbaKCKbT (ORCPT ); Mon, 3 Nov 2014 05:31:19 -0500 Received: by mail-pd0-f177.google.com with SMTP id v10so11095115pde.8 for ; Mon, 03 Nov 2014 02:31:18 -0800 (PST) X-Received: by 10.68.137.101 with SMTP id qh5mr42581575pbb.13.1415010678826; Mon, 03 Nov 2014 02:31:18 -0800 (PST) Received: from wangdeqiang.com ([210.21.223.3]) by mx.google.com with ESMTPSA id no8sm16803468pdb.63.2014.11.03.02.31.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 03 Nov 2014 02:31:18 -0800 (PST) From: "pang.xunlei" To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra , "pang.xunlei" Subject: [PATCH 2/3] sched/cpupri: Remove unnecessary definitions in cpupri.h Date: Mon, 3 Nov 2014 18:30:19 +0800 Message-Id: <1415010620-6176-2-git-send-email-pang.xunlei@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1415010620-6176-1-git-send-email-pang.xunlei@linaro.org> References: <1415010620-6176-1-git-send-email-pang.xunlei@linaro.org> 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: pang.xunlei@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.54 as permitted sender) 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: , Actually, cpupri_set() and cpupri_init() can never be used without CONFIG_SMP. Signed-off-by: pang.xunlei --- kernel/sched/cpupri.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sched/cpupri.h b/kernel/sched/cpupri.h index 6b03334..63cbb9c 100644 --- a/kernel/sched/cpupri.h +++ b/kernel/sched/cpupri.h @@ -26,9 +26,6 @@ int cpupri_find(struct cpupri *cp, void cpupri_set(struct cpupri *cp, int cpu, int pri); int cpupri_init(struct cpupri *cp); void cpupri_cleanup(struct cpupri *cp); -#else -#define cpupri_set(cp, cpu, pri) do { } while (0) -#define cpupri_init() do { } while (0) #endif #endif /* _LINUX_CPUPRI_H */