From: Juergen Gross Date: Fri, 25 Sep 2015 16:04:46 +0000 (+0200) Subject: remove unused macros from sched.h X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2490 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=fa2e4d38164453f7d000cc30d6cc47ffa1d77539;p=xen.git remove unused macros from sched.h The macros num_cpupool_cpus() and domain_is_locked() aren't used by anyone. Remove them. Signed-off-by: Juergen Gross Reviewed-by: Andrew Cooper --- diff --git a/xen/include/xen/sched.h b/xen/include/xen/sched.h index 8053b5a56f..68819f8c84 100644 --- a/xen/include/xen/sched.h +++ b/xen/include/xen/sched.h @@ -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__ */