Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 1b427c15 authored by Ingo Molnar's avatar Ingo Molnar
Browse files

sched: fix build error, provide partition_sched_domains() unconditionally



provide an empty partition_sched_domains() definition for the UP case:

 include/linux/cpuset.h: In function ‘rebuild_sched_domains':
 include/linux/cpuset.h:163: error: implicit declaration of function ‘partition_sched_domains'

Signed-off-by: default avatarIngo Molnar <mingo@elte.hu>
parent 39b0fad7
Loading
Loading
Loading
Loading
+10 −1
Original line number Original line Diff line number Diff line
@@ -824,7 +824,16 @@ extern void partition_sched_domains(int ndoms_new, cpumask_t *doms_new,
				    struct sched_domain_attr *dattr_new);
				    struct sched_domain_attr *dattr_new);
extern int arch_reinit_sched_domains(void);
extern int arch_reinit_sched_domains(void);


#endif	/* CONFIG_SMP */
#else /* CONFIG_SMP */

struct sched_domain_attr;

static inline void
partition_sched_domains(int ndoms_new, cpumask_t *doms_new,
			struct sched_domain_attr *dattr_new)
{
}
#endif	/* !CONFIG_SMP */


struct io_context;			/* See blkdev.h */
struct io_context;			/* See blkdev.h */
#define NGROUPS_SMALL		32
#define NGROUPS_SMALL		32