cpuset: guard CPUSETS_ASSISTANT code properly
Signed-off-by: UtsavBalar1231 <utsavbalar1231@gmail.com>
This commit is contained in:
@@ -1774,6 +1774,7 @@ out_unlock:
|
||||
return retval ?: nbytes;
|
||||
}
|
||||
|
||||
#ifdef CONFIG_CPUSETS_ASSIST
|
||||
static ssize_t cpuset_write_resmask_assist(struct kernfs_open_file *of,
|
||||
struct cs_target tgt, size_t nbytes,
|
||||
loff_t off)
|
||||
@@ -1781,6 +1782,7 @@ static ssize_t cpuset_write_resmask_assist(struct kernfs_open_file *of,
|
||||
pr_info("cpuset_assist: setting %s to %s\n", tgt.name, tgt.cpus);
|
||||
return cpuset_write_resmask(of, tgt.cpus, nbytes, off);
|
||||
}
|
||||
#endif
|
||||
|
||||
static ssize_t cpuset_write_resmask_wrapper(struct kernfs_open_file *of,
|
||||
char *buf, size_t nbytes, loff_t off)
|
||||
|
||||
Reference in New Issue
Block a user