Commit 472ad7f9 authored by Philippe Gerum's avatar Philippe Gerum
Browse files

evl/control: export oob cpu list via sysfs


Signed-off-by: Philippe Gerum's avatarPhilippe Gerum <rpm@xenomai.org>
parent 3ef0df5e
......@@ -310,6 +310,15 @@ static ssize_t abi_show(struct device *dev,
}
static DEVICE_ATTR_RO(abi);
static ssize_t cpus_show(struct device *dev,
struct device_attribute *attr,
char *buf)
{
return scnprintf(buf, PAGE_SIZE, "%*pbl\n",
cpumask_pr_args(&evl_oob_cpus));
}
static DEVICE_ATTR_RO(cpus);
#ifdef CONFIG_EVL_SCHED_QUOTA
static ssize_t quota_show(struct device *dev,
......@@ -361,6 +370,7 @@ static DEVICE_ATTR_RO(tp);
static struct attribute *control_attrs[] = {
&dev_attr_state.attr,
&dev_attr_abi.attr,
&dev_attr_cpus.attr,
#ifdef CONFIG_EVL_SCHED_QUOTA
&dev_attr_quota.attr,
#endif
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment