From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752796AbbFCExI (ORCPT ); Wed, 3 Jun 2015 00:53:08 -0400 Received: from e28smtp03.in.ibm.com ([122.248.162.3]:49380 "EHLO e28smtp03.in.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752565AbbFCExE (ORCPT ); Wed, 3 Jun 2015 00:53:04 -0400 Date: Wed, 3 Jun 2015 10:22:57 +0530 From: Kamalesh Babulal To: Peter Zijlstra Cc: umgwanakikbuti@gmail.com, mingo@elte.hu, ktkhai@parallels.com, rostedt@goodmis.org, juri.lelli@gmail.com, pang.xunlei@linaro.org, oleg@redhat.com, linux-kernel@vger.kernel.org Subject: Re: [RFC][PATCH 7/7] sched,dl: Convert switched_{from,to}_dl() / prio_changed_dl() to balance callbacks Message-ID: <20150603045256.GB1545@linux.vnet.ibm.com> Reply-To: Kamalesh Babulal References: <20150601135818.506080835@infradead.org> <20150601140840.270836867@infradead.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20150601140840.270836867@infradead.org> User-Agent: Mutt/1.5.23 (2014-03-12) X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 15060304-0009-0000-0000-000005CB8F5F Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org * Peter Zijlstra [2015-06-01 15:58:25]: [...] > > -static DEFINE_PER_CPU(struct callback_head, dl_balance_head); > +static DEFINE_PER_CPU(struct callback_head, dl_push_head); > +static DEFINE_PER_CPU(struct callback_head, dl_pull_head); > > static void push_dl_tasks(struct rq *); > +static void pull_dl_task(struct rq *); > > static inline void queue_push_tasks(struct rq *rq) > { > if (!has_pushable_dl_tasks(rq)) > return; > > - queue_balance_callback(rq, &per_cpu(dl_balance_head, rq->cpu), push_dl_tasks); > + queue_balance_callback(rq, &per_cpu(dl_push_head, rq->cpu), push_dl_tasks); > +} > + > +static inline void queue_pull_task(struct rq *rq) > +{ > + queue_balance_callback(rq, &per_cpu(dl_pull_head, rq->cpu), pull_dl_task); > } queue_pull_task() is not defined for CONFIG_SMP=n case, following build error is seen while building the kernel with SMP=n: CC kernel/sched/deadline.o kernel/sched/deadline.c: In function ‘switched_from_dl’: kernel/sched/deadline.c:1713:2: error: implicit declaration of function ‘queue_pull_task’ [-Werror=implicit-function-declaration] queue_pull_task(rq); ^ cc1: some warnings being treated as errors Thanks, Kamalesh.