On 2016/7/4 23:51, Igor Mammedov wrote:
> Replace repeated pattern
>
> for (i = 0; i < nb_numa_nodes; i++) {
> if (test_bit(idx, numa_info[i].node_cpu)) {
> ...
> break;
>
> with a helper function to lookup numa node index for cpu.
>
> Suggested-by: Michael S. Tsirkin <[email protected]>
> Signed-off-by: Igor Mammedov <[email protected]>
> Reviewed-by: David Gibson <[email protected]>
Reviewed-by: Shannon Zhao <[email protected]>-- Shannon
