From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Justin T. Weaver" Subject: [PATCH v4 1/5] sched: factor out VCPU2ONLINE to common header file Date: Sun, 12 Jul 2015 22:13:38 -1000 Message-ID: <1436775223-6397-2-git-send-email-jtweaver@hawaii.edu> References: <1436775223-6397-1-git-send-email-jtweaver@hawaii.edu> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436775223-6397-1-git-send-email-jtweaver@hawaii.edu> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: george.dunlap@eu.citrix.com, dario.faggioli@citrix.com, "Justin T. Weaver" , henric@hawaii.edu List-Id: xen-devel@lists.xenproject.org Move macro VCPU2ONLINE from schedule.c to sched.h so it can be used by other source files. Signed-off-by: Justin T. Weaver --- xen/common/schedule.c | 1 - xen/include/xen/sched.h | 2 ++ 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/common/schedule.c b/xen/common/schedule.c index ecf1545..c43b733 100644 --- a/xen/common/schedule.c +++ b/xen/common/schedule.c @@ -80,7 +80,6 @@ static struct scheduler __read_mostly ops; #define DOM2OP(_d) (((_d)->cpupool == NULL) ? &ops : ((_d)->cpupool->sched)) #define VCPU2OP(_v) (DOM2OP((_v)->domain)) -#define VCPU2ONLINE(_v) cpupool_online_cpumask((_v)->domain->cpupool) static inline void trace_runstate_change(struct vcpu *v, int new_state) { diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index b29d9e7..e5dd040 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -891,6 +891,8 @@ extern void dump_runq(unsigned char key); void arch_do_physinfo(xen_sysctl_physinfo_t *pi); +#define VCPU2ONLINE(_v) cpupool_online_cpumask((_v)->domain->cpupool) + #endif /* __SCHED_H__ */ /* -- 1.7.10.4