On Thu, Sep 08, 2016 at 11:03:26AM -0700, Tim Chen wrote: > On Thu, Sep 08, 2016 at 10:01:11AM +0200, Peter Zijlstra wrote: > > On Thu, Sep 01, 2016 at 01:33:38PM -0700, Srinivas Pandruvada wrote: > > > +++ b/kernel/sched/sched.h > > > @@ -532,6 +532,17 @@ struct dl_rq { > > > > > > #ifdef CONFIG_SMP > > > > > > +static inline bool sched_asym_prefer(int a, int b) > > > +{ > > > + return arch_asym_cpu_priority(a) > arch_asym_cpu_priority(b); > > > +} > > > + > > > +/* > > > + * Return lowest numbered cpu in the group as the most preferred cpu > > > + * for ASYM_PACKING for default case. > > > + */ > > > +#define group_priority_cpu(group) group->asym_prefer_cpu > > > + > > > > Both these are no longer used outside of sched/fair.c, and should > > probably be moved there. Also the later has no reason for being a macro. > > Peter, > > The sched_asym_prefer is used in sched/core.c to set asym_prefer_cpu > in a group. So we will still need the definition in sched.h. I've removed > the group_priority_cpu macro. Ah indeed. Thanks! -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html