Lines Matching defs:new_prs

1339 static int update_partition_exclusive(struct cpuset *cs, int new_prs)
1341 bool exclusive = (new_prs > 0);
1362 int new_prs = cs->partition_root_state;
1363 bool rebuild_domains = (new_prs > 0) || (old_prs > 0);
1370 if (new_prs > 0) {
1371 new_lb = (new_prs != PRS_ISOLATED);
1428 * @new_prs: new partition_root_state
1431 static void partition_xcpus_newstate(int old_prs, int new_prs, struct cpumask *xcpus)
1433 WARN_ON_ONCE(old_prs == new_prs);
1434 if (new_prs == PRS_ISOLATED)
1442 * @new_prs: new partition_root_state
1449 static bool partition_xcpus_add(int new_prs, struct cpuset *parent,
1454 WARN_ON_ONCE(new_prs < 0);
1463 isolcpus_updated = (new_prs != parent->partition_root_state);
1465 partition_xcpus_newstate(parent->partition_root_state, new_prs,
1566 * @new_prs: new partition_root_state
1573 static int remote_partition_enable(struct cpuset *cs, int new_prs,
1599 isolcpus_updated = partition_xcpus_add(new_prs, NULL, tmp->new_cpus);
1814 int old_prs, new_prs;
1824 * new_prs will only be changed for the partcmd_update and
1828 old_prs = new_prs = cs->partition_root_state;
1843 new_prs = -old_prs;
1873 if (prstate_housekeeping_conflict(new_prs, xcpus))
1886 new_prs = (cmd == partcmd_enable) ? PRS_ROOT : PRS_ISOLATED;
1896 new_prs = PRS_MEMBER;
2007 new_prs = -old_prs;
2014 new_prs = -old_prs;
2021 if (!adding && !deleting && (new_prs == old_prs))
2030 if ((old_prs != new_prs) && (cmd != partcmd_update)) {
2031 int err = update_partition_exclusive(cs, new_prs);
2045 if (old_prs != new_prs) {
2046 cs->partition_root_state = new_prs;
2047 if (new_prs <= 0)
2058 isolcpus_updated += partition_xcpus_add(new_prs, parent,
2068 if ((old_prs != new_prs) && (cmd == partcmd_update))
2069 update_partition_exclusive(cs, new_prs);
2180 int old_prs, new_prs;
2207 old_prs = new_prs = cp->partition_root_state;
2281 new_prs = -cp->partition_root_state;
2299 new_prs = cp->partition_root_state;
2304 cp->partition_root_state = new_prs;
2309 if ((new_prs > 0) && cpumask_empty(cp->exclusive_cpus))
2312 else if (new_prs < 0)
3030 * @new_prs: new partition root state
3035 static int update_prstate(struct cpuset *cs, int new_prs)
3042 if (old_prs == new_prs)
3048 if (new_prs && is_prs_invalid(old_prs))
3058 if ((new_prs > 0) && cpumask_empty(cs->exclusive_cpus)) {
3065 err = update_partition_exclusive(cs, new_prs);
3070 enum partition_cmd cmd = (new_prs == PRS_ROOT)
3086 if (err && remote_partition_enable(cs, new_prs, &tmpmask))
3088 } else if (old_prs && new_prs) {
3115 new_prs = -new_prs;
3116 update_partition_exclusive(cs, new_prs);
3120 cs->partition_root_state = new_prs;
3125 partition_xcpus_newstate(old_prs, new_prs, cs->effective_xcpus);
3130 update_cpumasks_hier(cs, &tmpmask, !new_prs ? HIER_CHECKALL : 0);