|
@@ -6728,7 +6728,7 @@ int __init sched_create_sysfs_power_savings_entries(struct device *dev)
|
|
|
static int cpuset_cpu_active(struct notifier_block *nfb, unsigned long action,
|
|
static int cpuset_cpu_active(struct notifier_block *nfb, unsigned long action,
|
|
|
void *hcpu)
|
|
void *hcpu)
|
|
|
{
|
|
{
|
|
|
- switch (action) {
|
|
|
|
|
|
|
+ switch (action & ~CPU_TASKS_FROZEN) {
|
|
|
case CPU_ONLINE:
|
|
case CPU_ONLINE:
|
|
|
case CPU_DOWN_FAILED:
|
|
case CPU_DOWN_FAILED:
|
|
|
cpuset_update_active_cpus();
|
|
cpuset_update_active_cpus();
|
|
@@ -6741,7 +6741,7 @@ static int cpuset_cpu_active(struct notifier_block *nfb, unsigned long action,
|
|
|
static int cpuset_cpu_inactive(struct notifier_block *nfb, unsigned long action,
|
|
static int cpuset_cpu_inactive(struct notifier_block *nfb, unsigned long action,
|
|
|
void *hcpu)
|
|
void *hcpu)
|
|
|
{
|
|
{
|
|
|
- switch (action) {
|
|
|
|
|
|
|
+ switch (action & ~CPU_TASKS_FROZEN) {
|
|
|
case CPU_DOWN_PREPARE:
|
|
case CPU_DOWN_PREPARE:
|
|
|
cpuset_update_active_cpus();
|
|
cpuset_update_active_cpus();
|
|
|
return NOTIFY_OK;
|
|
return NOTIFY_OK;
|