Lines Matching defs:old_prs

262 static inline void notify_partition_change(struct cpuset *cs, int old_prs)
264 if (old_prs == cs->partition_root_state)
1137 static void update_partition_sd_lb(struct cpuset *cs, int old_prs)
1140 bool rebuild_domains = (new_prs > 0) || (old_prs > 0);
1199 * @old_prs: old partition_root_state
1203 static void isolated_cpus_update(int old_prs, int new_prs, struct cpumask *xcpus)
1205 WARN_ON_ONCE(old_prs == new_prs);
1249 * @old_prs: old partition_root_state
1255 static void partition_xcpus_del(int old_prs, struct cpuset *parent,
1258 WARN_ON_ONCE(old_prs < 0);
1266 if (old_prs != parent->partition_root_state)
1267 isolated_cpus_update(old_prs, parent->partition_root_state,
1696 int old_prs, new_prs;
1710 old_prs = new_prs = cs->partition_root_state;
1723 if (old_prs > 0)
1724 new_prs = -old_prs;
1842 if (is_partition_valid(cs) && (old_prs != parent_prs)) {
1935 new_prs = -old_prs;
1940 new_prs = -old_prs;
1945 if (!adding && !deleting && (new_prs == old_prs))
1954 if ((old_prs != new_prs) && (cmd != partcmd_update)) {
1969 if (old_prs != new_prs)
1977 partition_xcpus_del(old_prs, parent, tmp->addmask);
1983 if ((old_prs != new_prs) && (cmd == partcmd_update))
1997 update_partition_sd_lb(cs, old_prs);
1999 notify_partition_change(cs, old_prs);
2056 int old_prs = child->partition_root_state;
2064 notify_partition_change(child, old_prs);
2091 int old_prs, new_prs;
2099 old_prs = new_prs = cp->partition_root_state;
2121 remote = (new_prs == old_prs);
2173 if ((cp != cs) && old_prs) {
2221 notify_partition_change(cp, old_prs);
2397 int old_prs = cs->partition_root_state;
2428 if ((old_prs > 0) && !is_partition_valid(cs))
2437 update_partition_sd_lb(cs, old_prs);
2457 int old_prs = cs->partition_root_state;
2493 if ((old_prs > 0) && !is_partition_valid(cs))
2507 update_partition_sd_lb(cs, old_prs);
2849 int err = PERR_NONE, old_prs = cs->partition_root_state;
2854 if (old_prs == new_prs)
2861 old_prs = PRS_MEMBER;
2870 if (!old_prs) {
2904 } else if (old_prs && new_prs) {
2947 isolated_cpus_update(old_prs, new_prs, cs->effective_xcpus);
2954 WARN_ON_ONCE(!old_prs && (new_prs > 0)
2958 update_partition_sd_lb(cs, old_prs);
2960 notify_partition_change(cs, old_prs);