Re: [rt-tests v2 v2 02/20] cyclictest: Use numa API directly
From: Daniel Wagner <hidden>
Date: 2021-01-26 18:44:12
From: Daniel Wagner <hidden>
Date: 2021-01-26 18:44:12
On Tue, Jan 26, 2021 at 12:31:37AM -0500, John Kacur wrote:
quoted
@@ -1929,7 +1929,7 @@ int main(int argc, char **argv) } /* find the memory node associated with the cpu i */ - node = rt_numa_numa_node_of_cpu(cpu); + node = numa_node_of_cpu(cpu);You've eliminated the error handling that was in the wrapper here.
I was under the impression that cpu will always be a valid. You are right, we can't be sure of that, because we only warn if the affinity_mask is not correct (should this be a error?) and things could change until we reach this point. I'll add the error handling back.