xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Justin T. Weaver" <jtweaver@hawaii.edu>
To: xen-devel@lists.xen.org
Cc: george.dunlap@eu.citrix.com, dario.faggioli@citrix.com,
	"Justin T. Weaver" <jtweaver@hawaii.edu>,
	henric@hawaii.edu
Subject: [PATCH v4 1/5] sched: factor out VCPU2ONLINE to common header file
Date: Sun, 12 Jul 2015 22:13:38 -1000	[thread overview]
Message-ID: <1436775223-6397-2-git-send-email-jtweaver@hawaii.edu> (raw)
In-Reply-To: <1436775223-6397-1-git-send-email-jtweaver@hawaii.edu>

Move macro VCPU2ONLINE from schedule.c to sched.h so it can be used by other
source files.

Signed-off-by: Justin T. Weaver <jtweaver@hawaii.edu>
---
 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

  reply	other threads:[~2015-07-13  8:13 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-13  8:13 [PATCH v4 0/5] sched: credit2: introduce per-vcpu hard and soft affinity Justin T. Weaver
2015-07-13  8:13 ` Justin T. Weaver [this message]
2015-09-17 15:26   ` [PATCH v4 1/5] sched: factor out VCPU2ONLINE to common header file Dario Faggioli
2015-07-13  8:13 ` [PATCH v4 2/5] sched: credit2: respect per-vcpu hard affinity Justin T. Weaver
2015-09-18 22:12   ` Dario Faggioli
2015-07-13  8:13 ` [PATCH v4 3/5] sched: factor out per-vcpu affinity related code to common header file Justin T. Weaver
2015-07-13  8:13 ` [PATCH v4 4/5] sched: credit2: add soft affinity awareness to function get_fallback_cpu Justin T. Weaver
2015-07-13  8:13 ` [PATCH v4 5/5] sched: credit2: add soft affinity awareness to function runq_tickle Justin T. Weaver
2015-07-13 15:43 ` [PATCH v4 0/5] sched: credit2: introduce per-vcpu hard and soft affinity Dario Faggioli
2015-09-14  9:03 ` Dario Faggioli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1436775223-6397-2-git-send-email-jtweaver@hawaii.edu \
    --to=jtweaver@hawaii.edu \
    --cc=dario.faggioli@citrix.com \
    --cc=george.dunlap@eu.citrix.com \
    --cc=henric@hawaii.edu \
    --cc=xen-devel@lists.xen.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).