Lines Matching refs:new_prs
1167 static int update_partition_exclusive_flag(struct cpuset *cs, int new_prs) in update_partition_exclusive_flag() argument
1169 bool exclusive = (new_prs > PRS_MEMBER); in update_partition_exclusive_flag()
1190 int new_prs = cs->partition_root_state; in update_partition_sd_lb() local
1191 bool rebuild_domains = (new_prs > 0) || (old_prs > 0); in update_partition_sd_lb()
1198 if (new_prs > 0) { in update_partition_sd_lb()
1199 new_lb = (new_prs != PRS_ISOLATED); in update_partition_sd_lb()
1255 static void isolated_cpus_update(int old_prs, int new_prs, struct cpumask *xcpus) in isolated_cpus_update() argument
1257 WARN_ON_ONCE(old_prs == new_prs); in isolated_cpus_update()
1258 if (new_prs == PRS_ISOLATED) in isolated_cpus_update()
1273 static bool partition_xcpus_add(int new_prs, struct cpuset *parent, in partition_xcpus_add() argument
1278 WARN_ON_ONCE(new_prs < 0); in partition_xcpus_add()
1287 isolcpus_updated = (new_prs != parent->partition_root_state); in partition_xcpus_add()
1289 isolated_cpus_update(parent->partition_root_state, new_prs, in partition_xcpus_add()
1429 static int remote_partition_enable(struct cpuset *cs, int new_prs, in remote_partition_enable() argument
1455 isolcpus_updated = partition_xcpus_add(new_prs, NULL, tmp->new_cpus); in remote_partition_enable()
1647 int old_prs, new_prs; in update_parent_effective_cpumask() local
1662 old_prs = new_prs = cs->partition_root_state; in update_parent_effective_cpumask()
1675 new_prs = -old_prs; in update_parent_effective_cpumask()
1712 if (prstate_housekeeping_conflict(new_prs, xcpus)) in update_parent_effective_cpumask()
1725 new_prs = (cmd == partcmd_enable) ? PRS_ROOT : PRS_ISOLATED; in update_parent_effective_cpumask()
1738 new_prs = PRS_MEMBER; in update_parent_effective_cpumask()
1852 new_prs = -old_prs; in update_parent_effective_cpumask()
1859 new_prs = -old_prs; in update_parent_effective_cpumask()
1866 if (!adding && !deleting && (new_prs == old_prs)) in update_parent_effective_cpumask()
1875 if ((old_prs != new_prs) && (cmd != partcmd_update)) { in update_parent_effective_cpumask()
1876 int err = update_partition_exclusive_flag(cs, new_prs); in update_parent_effective_cpumask()
1890 if (old_prs != new_prs) { in update_parent_effective_cpumask()
1891 cs->partition_root_state = new_prs; in update_parent_effective_cpumask()
1892 if (new_prs <= 0) in update_parent_effective_cpumask()
1903 isolcpus_updated += partition_xcpus_add(new_prs, parent, in update_parent_effective_cpumask()
1913 if ((old_prs != new_prs) && (cmd == partcmd_update)) in update_parent_effective_cpumask()
1914 update_partition_exclusive_flag(cs, new_prs); in update_parent_effective_cpumask()
2024 int old_prs, new_prs; in update_cpumasks_hier() local
2032 old_prs = new_prs = cp->partition_root_state; in update_cpumasks_hier()
2053 new_prs = cp->partition_root_state; in update_cpumasks_hier()
2054 remote = (new_prs == old_prs); in update_cpumasks_hier()
2120 new_prs = -cp->partition_root_state; in update_cpumasks_hier()
2138 new_prs = cp->partition_root_state; in update_cpumasks_hier()
2143 cp->partition_root_state = new_prs; in update_cpumasks_hier()
2151 if ((new_prs > 0) && cpumask_empty(cp->exclusive_cpus)) in update_cpumasks_hier()
2154 else if (new_prs < 0) in update_cpumasks_hier()
2839 static int update_prstate(struct cpuset *cs, int new_prs) in update_prstate() argument
2846 if (old_prs == new_prs) in update_prstate()
2852 if (new_prs && is_prs_invalid(old_prs)) in update_prstate()
2858 err = update_partition_exclusive_flag(cs, new_prs); in update_prstate()
2889 enum partition_cmd cmd = (new_prs == PRS_ROOT) in update_prstate()
2894 err = remote_partition_enable(cs, new_prs, &tmpmask); in update_prstate()
2896 } else if (old_prs && new_prs) { in update_prstate()
2924 new_prs = -new_prs; in update_prstate()
2925 update_partition_exclusive_flag(cs, new_prs); in update_prstate()
2929 cs->partition_root_state = new_prs; in update_prstate()
2934 isolated_cpus_update(old_prs, new_prs, cs->effective_xcpus); in update_prstate()
2939 update_cpumasks_hier(cs, &tmpmask, !new_prs); in update_prstate()
2942 WARN_ON_ONCE(!old_prs && (new_prs > 0) in update_prstate()