Lines Matching refs:old_prs
179 static inline void notify_partition_change(struct cpuset *cs, int old_prs) in notify_partition_change() argument
181 if (old_prs == cs->partition_root_state) in notify_partition_change()
1185 static void update_partition_sd_lb(struct cpuset *cs, int old_prs) in update_partition_sd_lb() argument
1188 bool rebuild_domains = (new_prs > 0) || (old_prs > 0); in update_partition_sd_lb()
1252 static void partition_xcpus_newstate(int old_prs, int new_prs, struct cpumask *xcpus) in partition_xcpus_newstate() argument
1254 WARN_ON_ONCE(old_prs == new_prs); in partition_xcpus_newstate()
1302 static bool partition_xcpus_del(int old_prs, struct cpuset *parent, in partition_xcpus_del() argument
1307 WARN_ON_ONCE(old_prs < 0); in partition_xcpus_del()
1315 isolcpus_updated = (old_prs != parent->partition_root_state); in partition_xcpus_del()
1317 partition_xcpus_newstate(old_prs, parent->partition_root_state, in partition_xcpus_del()
1634 int old_prs, new_prs; in update_parent_effective_cpumask() local
1648 old_prs = new_prs = cs->partition_root_state; in update_parent_effective_cpumask()
1652 if (is_prs_invalid(old_prs)) in update_parent_effective_cpumask()
1661 if (old_prs > 0) { in update_parent_effective_cpumask()
1662 new_prs = -old_prs; in update_parent_effective_cpumask()
1711 adding = !is_prs_invalid(old_prs) && in update_parent_effective_cpumask()
1741 if (is_prs_invalid(old_prs)) { in update_parent_effective_cpumask()
1828 new_prs = -old_prs; in update_parent_effective_cpumask()
1835 new_prs = -old_prs; in update_parent_effective_cpumask()
1842 if (!adding && !deleting && (new_prs == old_prs)) in update_parent_effective_cpumask()
1851 if ((old_prs != new_prs) && (cmd != partcmd_update)) { in update_parent_effective_cpumask()
1866 if (old_prs != new_prs) { in update_parent_effective_cpumask()
1876 isolcpus_updated += partition_xcpus_del(old_prs, parent, in update_parent_effective_cpumask()
1889 if ((old_prs != new_prs) && (cmd == partcmd_update)) in update_parent_effective_cpumask()
1903 update_partition_sd_lb(cs, old_prs); in update_parent_effective_cpumask()
1905 notify_partition_change(cs, old_prs); in update_parent_effective_cpumask()
1957 int old_prs = child->partition_root_state; in compute_partition_effective_cpumask() local
1967 notify_partition_change(child, old_prs); in compute_partition_effective_cpumask()
1995 int old_prs, new_prs; in update_cpumasks_hier() local
2022 old_prs = new_prs = cp->partition_root_state; in update_cpumasks_hier()
2073 if ((cp != cs) && old_prs) { in update_cpumasks_hier()
2122 notify_partition_change(cp, old_prs); in update_cpumasks_hier()
2223 int old_prs = cs->partition_root_state; in update_cpumask() local
2265 if (old_prs) { in update_cpumask()
2270 } else if (prstate_housekeeping_conflict(old_prs, trialcs->effective_xcpus)) { in update_cpumask()
2346 if ((old_prs > 0) && !is_partition_valid(cs)) in update_cpumask()
2355 update_partition_sd_lb(cs, old_prs); in update_cpumask()
2377 int old_prs = cs->partition_root_state; in update_exclusive_cpumask() local
2408 if (old_prs) { in update_exclusive_cpumask()
2412 } else if (prstate_housekeeping_conflict(old_prs, trialcs->effective_xcpus)) { in update_exclusive_cpumask()
2443 if ((old_prs > 0) && !is_partition_valid(cs)) in update_exclusive_cpumask()
2457 update_partition_sd_lb(cs, old_prs); in update_exclusive_cpumask()
2802 int err = PERR_NONE, old_prs = cs->partition_root_state; in update_prstate() local
2807 if (old_prs == new_prs) in update_prstate()
2813 if (new_prs && is_prs_invalid(old_prs)) in update_prstate()
2814 old_prs = PRS_MEMBER; in update_prstate()
2834 if (!old_prs) { in update_prstate()
2855 } else if (old_prs && new_prs) { in update_prstate()
2892 partition_xcpus_newstate(old_prs, new_prs, cs->effective_xcpus); in update_prstate()
2900 update_partition_sd_lb(cs, old_prs); in update_prstate()
2902 notify_partition_change(cs, old_prs); in update_prstate()