From patchwork Tue Nov 4 11:13:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "pang.xunlei" X-Patchwork-Id: 40131 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f71.google.com (mail-la0-f71.google.com [209.85.215.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5268C240A6 for ; Tue, 4 Nov 2014 11:16:17 +0000 (UTC) Received: by mail-la0-f71.google.com with SMTP id gq15sf484947lab.2 for ; Tue, 04 Nov 2014 03:16:15 -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=KPi6jHygR7N45vX3HKutuaCpq1D/OGIPhvlDmfqeSRM=; b=NSbQZWRh0PuboPUVXesuqaQPfiR9egXhMQhjCUUQA07JWXevozrKS/12doiRvV3z9c XJEPtU7KxGJ8yC12qBLaveyMJQMdMXnO0k0Um6BETdLX7OpFxcBGHbjX9V3yslrA9yTV YQdlZ9dC4jXPhJFOj0e7XNQ9+6tfrzEAh9sNwrMyL196ys0Y1w7orJJOu267K6ov06tj FFRZMVnO8j7rHcFR1ClchGtSnWro3kdnvl9t0BA2pI0nff6SSy+N/2s36bm8mvtAZiel bkAyy3146r4WqYKg35UtT2U/SMx1/MVihIIZpj+sHH6NyNnaqeQzcZglVg6Qwy+cRA2l 4YDw== X-Gm-Message-State: ALoCoQlPvggUYHGicJHDi7xTvtxlLjg+E47IgeR0r1gsGsX/8scezWOsuXE+nAw7b07f0BU8ln/n X-Received: by 10.112.163.229 with SMTP id yl5mr45331lbb.23.1415099775896; Tue, 04 Nov 2014 03:16:15 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.206.35 with SMTP id ll3ls376140lac.8.gmail; Tue, 04 Nov 2014 03:16:15 -0800 (PST) X-Received: by 10.152.42.172 with SMTP id p12mr58653841lal.11.1415099775719; Tue, 04 Nov 2014 03:16:15 -0800 (PST) Received: from mail-la0-f46.google.com (mail-la0-f46.google.com. [209.85.215.46]) by mx.google.com with ESMTPS id w5si125228lae.80.2014.11.04.03.16.15 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Nov 2014 03:16:15 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.46 as permitted sender) client-ip=209.85.215.46; Received: by mail-la0-f46.google.com with SMTP id hs14so674159lab.33 for ; Tue, 04 Nov 2014 03:16:15 -0800 (PST) X-Received: by 10.152.6.228 with SMTP id e4mr58541363laa.71.1415099775626; Tue, 04 Nov 2014 03:16:15 -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.184.201 with SMTP id ew9csp98550lbc; Tue, 4 Nov 2014 03:16:14 -0800 (PST) X-Received: by 10.66.142.230 with SMTP id rz6mr7629518pab.129.1415099774132; Tue, 04 Nov 2014 03:16:14 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id pd10si122034pac.16.2014.11.04.03.16.13 for ; Tue, 04 Nov 2014 03:16:14 -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 S1753361AbaKDLQE (ORCPT + 25 others); Tue, 4 Nov 2014 06:16:04 -0500 Received: from mail-pa0-f41.google.com ([209.85.220.41]:46867 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753167AbaKDLPp (ORCPT ); Tue, 4 Nov 2014 06:15:45 -0500 Received: by mail-pa0-f41.google.com with SMTP id rd3so14233770pab.14 for ; Tue, 04 Nov 2014 03:15:45 -0800 (PST) X-Received: by 10.70.103.174 with SMTP id fx14mr50050314pdb.23.1415099745047; Tue, 04 Nov 2014 03:15:45 -0800 (PST) Received: from wangdeqiang.com ([210.21.223.3]) by mx.google.com with ESMTPSA id ol3sm158568pbb.17.2014.11.04.03.15.41 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Nov 2014 03:15:44 -0800 (PST) From: "pang.xunlei" To: linux-kernel@vger.kernel.org Cc: Ingo Molnar , Peter Zijlstra , Steven Rostedt , Juri Lelli , "pang.xunlei" Subject: [PATCH v2 6/6] sched/dl: Remove unnecessary definitions in cpudeadline.h Date: Tue, 4 Nov 2014 19:13:05 +0800 Message-Id: <1415099585-31174-6-git-send-email-pang.xunlei@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1415099585-31174-1-git-send-email-pang.xunlei@linaro.org> References: <1415099585-31174-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.46 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, cpudl_set() and cpudl_init() can never be used without CONFIG_SMP. Signed-off-by: pang.xunlei --- kernel/sched/cpudeadline.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/kernel/sched/cpudeadline.h b/kernel/sched/cpudeadline.h index d79e4d8..7096e5a 100644 --- a/kernel/sched/cpudeadline.h +++ b/kernel/sched/cpudeadline.h @@ -34,9 +34,6 @@ int cpudl_find(struct cpudl *cp, struct task_struct *p, void cpudl_set(struct cpudl *cp, int cpu, u64 dl, int set_flags); int cpudl_init(struct cpudl *cp); void cpudl_cleanup(struct cpudl *cp); -#else -#define cpudl_set(cp, cpu, dl) do { } while (0) -#define cpudl_init() do { } while (0) #endif /* CONFIG_SMP */ #endif /* _LINUX_CPUDL_H */