Commit c4e9e2e
committed
hardware: refactor the code for CPU policy sanity check
The code setting the 'dedicated_cpus' for the 'dedicated' policy
instance does not belong to the scope of CPU policy sanity check,
moving it out of the sanity check block.
Also removed a note saying 'get_dedicated_cpu_constraint' should
be public, which seems not necessary.
This is a follow-up commit in addressing comments in this topic [1].
[1] https://review.opendev.org/#/c/716267/14/
Part of blueprint use-pcpu-and-vcpu-in-one-instance
Change-Id: I3fdfde36641dccfc9de60c25779e60fb9aabba82
Signed-off-by: Wang Huaqiang <[email protected]>1 parent ba3388d commit c4e9e2e
1 file changed
+6
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1944 | 1944 | | |
1945 | 1945 | | |
1946 | 1946 | | |
1947 | | - | |
1948 | | - | |
1949 | | - | |
1950 | 1947 | | |
1951 | 1948 | | |
1952 | 1949 | | |
| |||
1960 | 1957 | | |
1961 | 1958 | | |
1962 | 1959 | | |
| 1960 | + | |
| 1961 | + | |
1963 | 1962 | | |
| 1963 | + | |
| 1964 | + | |
| 1965 | + | |
| 1966 | + | |
1964 | 1967 | | |
1965 | 1968 | | |
1966 | 1969 | | |
| |||
0 commit comments