From patchwork Tue Jun 3 12:59:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daniel Lezcano X-Patchwork-Id: 31325 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-yk0-f198.google.com (mail-yk0-f198.google.com [209.85.160.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 5DBA3203AC for ; Tue, 3 Jun 2014 12:58:59 +0000 (UTC) Received: by mail-yk0-f198.google.com with SMTP id 9sf17150126ykp.5 for ; Tue, 03 Jun 2014 05:58:59 -0700 (PDT) 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=5R2uSnpGJgdJzD80i09mqGGBWpsExI1/mXppawmTIF0=; b=EZdVBwSvpvT5M/MO5ZeiyGxgRIPDeJOxVi+vGbh5uTLlUsmXwXxBuIzHEC8mrWO2Xy CxeP93tbG25R4Vk6LLHRQRLSEWNY9QZMn1ynKjU34G+9GM89AY24DOEbncuonxcDqH60 Z0T07YSzIm01D1jyOK6vYsVr+EvbuxiExc2p2MwOCRW76OWhNaHEQ7GF4lscdnZMAISg mf0kByHNypUK+cf6U8mLKqdc3pkBQbOiGnaejGnpc1EgpHM6IxDC05HjcSnBmUOZvCY9 +RvGJxUwX6ltyJqRwTfOjsndxQIlvI1Y75w99MSNOLZbOeSeOzIHbjrUuDE4Q/ziZHOJ aVMA== X-Gm-Message-State: ALoCoQk8Cd4SgNxzfhcXZbZ9Axgmp0cHTjxlPYSuh3iLipiPsG8yjLUSbH7KBunk6z1vLWXNdNQ2 X-Received: by 10.236.202.143 with SMTP id d15mr12648713yho.18.1401800339146; Tue, 03 Jun 2014 05:58:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.101.4 with SMTP id t4ls2675340qge.1.gmail; Tue, 03 Jun 2014 05:58:58 -0700 (PDT) X-Received: by 10.52.14.9 with SMTP id l9mr7482686vdc.41.1401800338948; Tue, 03 Jun 2014 05:58:58 -0700 (PDT) Received: from mail-vc0-f178.google.com (mail-vc0-f178.google.com [209.85.220.178]) by mx.google.com with ESMTPS id i4si9893183vdc.32.2014.06.03.05.58.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Jun 2014 05:58:58 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 as permitted sender) client-ip=209.85.220.178; Received: by mail-vc0-f178.google.com with SMTP id hy4so3066636vcb.9 for ; Tue, 03 Jun 2014 05:58:58 -0700 (PDT) X-Received: by 10.58.186.207 with SMTP id fm15mr36494570vec.4.1401800338859; Tue, 03 Jun 2014 05:58:58 -0700 (PDT) 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.221.72 with SMTP id ib8csp175759vcb; Tue, 3 Jun 2014 05:58:58 -0700 (PDT) X-Received: by 10.182.3.10 with SMTP id 10mr47048562oby.22.1401800338263; Tue, 03 Jun 2014 05:58:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id x4si20913958pbw.180.2014.06.03.05.58.57; Tue, 03 Jun 2014 05:58:57 -0700 (PDT) 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 S1754072AbaFCM6s (ORCPT + 27 others); Tue, 3 Jun 2014 08:58:48 -0400 Received: from mail-wg0-f52.google.com ([74.125.82.52]:58429 "EHLO mail-wg0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751221AbaFCM6r (ORCPT ); Tue, 3 Jun 2014 08:58:47 -0400 Received: by mail-wg0-f52.google.com with SMTP id l18so6751831wgh.35 for ; Tue, 03 Jun 2014 05:58:46 -0700 (PDT) X-Received: by 10.194.190.42 with SMTP id gn10mr60853478wjc.9.1401800326002; Tue, 03 Jun 2014 05:58:46 -0700 (PDT) Received: from localhost.localdomain (AToulouse-654-1-396-57.w90-55.abo.wanadoo.fr. [90.55.195.57]) by mx.google.com with ESMTPSA id lo18sm2775879wic.1.2014.06.03.05.58.44 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 03 Jun 2014 05:58:45 -0700 (PDT) From: Daniel Lezcano To: peterz@infradead.org Cc: linux-kernel@vger.kernel.org Subject: [PATCH] sched: Move enum CPU_[xxx_]IDLE to private sched.h Date: Tue, 3 Jun 2014 14:59:05 +0200 Message-Id: <1401800345-29468-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=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.178 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: , The different enum CPU_IDLE, CPU_NOT_IDLE, CPU_NEWLY_IDLE and CPU_MAX_IDLE_TYPES are only used in kernel/sched/fair.c and kernel/sched/stats.c. Move their definitions in the private 'sched.h' file located in the same place than the files above. Signed-off-by: Daniel Lezcano --- include/linux/sched.h | 7 ------- kernel/sched/sched.h | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/include/linux/sched.h b/include/linux/sched.h index 0f91d00..d561501 100644 --- a/include/linux/sched.h +++ b/include/linux/sched.h @@ -846,13 +846,6 @@ static inline int sched_info_on(void) #endif } -enum cpu_idle_type { - CPU_IDLE, - CPU_NOT_IDLE, - CPU_NEWLY_IDLE, - CPU_MAX_IDLE_TYPES -}; - /* * Increase resolution of cpu_power calculations */ diff --git a/kernel/sched/sched.h b/kernel/sched/sched.h index 600e229..118a859 100644 --- a/kernel/sched/sched.h +++ b/kernel/sched/sched.h @@ -23,6 +23,13 @@ extern atomic_long_t calc_load_tasks; extern long calc_load_fold_active(struct rq *this_rq); extern void update_cpu_load_active(struct rq *this_rq); +enum cpu_idle_type { + CPU_IDLE, + CPU_NOT_IDLE, + CPU_NEWLY_IDLE, + CPU_MAX_IDLE_TYPES +}; + /* * Helpers for converting nanosecond timing to jiffy resolution */