Lines Matching refs:old_prs

184 static inline void notify_partition_change(struct cpuset *cs, int old_prs)  in notify_partition_change()  argument
186 if (old_prs == cs->partition_root_state) in notify_partition_change()
1188 static void update_partition_sd_lb(struct cpuset *cs, int old_prs) in update_partition_sd_lb() argument
1191 bool rebuild_domains = (new_prs > 0) || (old_prs > 0); 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()
1305 static bool partition_xcpus_del(int old_prs, struct cpuset *parent, in partition_xcpus_del() argument
1310 WARN_ON_ONCE(old_prs < 0); in partition_xcpus_del()
1318 isolcpus_updated = (old_prs != parent->partition_root_state); in partition_xcpus_del()
1320 isolated_cpus_update(old_prs, parent->partition_root_state, in partition_xcpus_del()
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()
1665 if (is_prs_invalid(old_prs)) in update_parent_effective_cpumask()
1674 if (old_prs > 0) { in update_parent_effective_cpumask()
1675 new_prs = -old_prs; in update_parent_effective_cpumask()
1765 if (is_prs_invalid(old_prs)) { 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()
1890 if (old_prs != new_prs) { in update_parent_effective_cpumask()
1900 isolcpus_updated += partition_xcpus_del(old_prs, parent, in update_parent_effective_cpumask()
1913 if ((old_prs != new_prs) && (cmd == partcmd_update)) in update_parent_effective_cpumask()
1927 update_partition_sd_lb(cs, old_prs); in update_parent_effective_cpumask()
1929 notify_partition_change(cs, old_prs); in update_parent_effective_cpumask()
1986 int old_prs = child->partition_root_state; in compute_partition_effective_cpumask() local
1996 notify_partition_change(child, old_prs); in compute_partition_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()
2054 remote = (new_prs == old_prs); in update_cpumasks_hier()
2106 if ((cp != cs) && old_prs) { in update_cpumasks_hier()
2158 notify_partition_change(cp, old_prs); in update_cpumasks_hier()
2266 int old_prs = cs->partition_root_state; in update_cpumask() local
2309 if (old_prs) { in update_cpumask()
2314 } else if (prstate_housekeeping_conflict(old_prs, trialcs->effective_xcpus)) { in update_cpumask()
2384 if ((old_prs > 0) && !is_partition_valid(cs)) in update_cpumask()
2393 update_partition_sd_lb(cs, old_prs); in update_cpumask()
2415 int old_prs = cs->partition_root_state; in update_exclusive_cpumask() local
2453 if (old_prs) { in update_exclusive_cpumask()
2457 } else if (prstate_housekeeping_conflict(old_prs, trialcs->effective_xcpus)) { in update_exclusive_cpumask()
2482 if ((old_prs > 0) && !is_partition_valid(cs)) in update_exclusive_cpumask()
2496 update_partition_sd_lb(cs, old_prs); in update_exclusive_cpumask()
2841 int err = PERR_NONE, old_prs = cs->partition_root_state; in update_prstate() local
2846 if (old_prs == new_prs) in update_prstate()
2852 if (new_prs && is_prs_invalid(old_prs)) in update_prstate()
2853 old_prs = PRS_MEMBER; in update_prstate()
2862 if (!old_prs) { in update_prstate()
2896 } else if (old_prs && new_prs) { in update_prstate()
2934 isolated_cpus_update(old_prs, new_prs, cs->effective_xcpus); in update_prstate()
2942 WARN_ON_ONCE(!old_prs && (new_prs > 0) in update_prstate()
2946 update_partition_sd_lb(cs, old_prs); in update_prstate()
2948 notify_partition_change(cs, old_prs); in update_prstate()