From ac7e2d348c0b1c8a581c76155d1404eeb5d79916 Mon Sep 17 00:00:00 2001 From: Sabyasachi Singh Date: Mon, 3 Apr 2017 11:57:15 -0700 Subject: [PATCH] drivers/base: cpu: Add node for core control isolation This cpu node can be used to check the isolated cores which are made unavailable for scheduler and exempted from waking up on interrupts or from running timers at the given time based on the load. All the runnable tasks, timers and hrtimers should have migrated to other online running cores. Change-Id: I32fed6cc131288b9c318f0dea65e2e59396225ca Signed-off-by: Sabyasachi Singh Signed-off-by: Syed Rameez Mustafa --- drivers/base/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index d82ce17f2962..460924407875 100644 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -416,6 +416,7 @@ static struct cpu_attr cpu_attrs[] = { _CPU_ATTR(online, &__cpu_online_mask), _CPU_ATTR(possible, &__cpu_possible_mask), _CPU_ATTR(present, &__cpu_present_mask), + _CPU_ATTR(core_ctl_isolated, &__cpu_isolated_mask), }; /* @@ -651,6 +652,7 @@ static struct attribute *cpu_root_attrs[] = { &cpu_attrs[0].attr.attr, &cpu_attrs[1].attr.attr, &cpu_attrs[2].attr.attr, + &cpu_attrs[3].attr.attr, &dev_attr_kernel_max.attr, &dev_attr_offline.attr, &dev_attr_isolated.attr,