remove unused macros from sched.h
authorJuergen Gross <jgross@ssue.com>
Fri, 25 Sep 2015 16:04:46 +0000 (18:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 25 Sep 2015 16:04:46 +0000 (18:04 +0200)
The macros num_cpupool_cpus() and domain_is_locked() aren't used by
anyone. Remove them.

Signed-off-by: Juergen Gross <jgross@ssue.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/include/xen/sched.h

index 8053b5a56f545c3f6ba18e24933c25f39a19c954..68819f8c841a3372997fad202094340a5972e39d 100644 (file)
@@ -260,7 +260,6 @@ struct vcpu
 /* Per-domain lock can be recursively acquired in fault handlers. */
 #define domain_lock(d) spin_lock_recursive(&(d)->domain_lock)
 #define domain_unlock(d) spin_unlock_recursive(&(d)->domain_lock)
-#define domain_is_locked(d) spin_is_locked(&(d)->domain_lock)
 
 /* VM event */
 struct vm_event_domain
@@ -894,8 +893,6 @@ int cpupool_do_sysctl(struct xen_sysctl_cpupool_op *op);
 void schedule_dump(struct cpupool *c);
 extern void dump_runq(unsigned char key);
 
-#define num_cpupool_cpus(c) cpumask_weight((c)->cpu_valid)
-
 void arch_do_physinfo(xen_sysctl_physinfo_t *pi);
 
 #endif /* __SCHED_H__ */