|
From: | Shannon Zhao |
Subject: | Re: [Qemu-devel] [PATCH v4 3/5] numa: reduce code duplication by adding helper numa_get_node_for_cpu() |
Date: | Tue, 5 Jul 2016 09:09:19 +0800 |
User-agent: | Mozilla/5.0 (Windows NT 6.1; rv:24.0) Gecko/20100101 Thunderbird/24.4.0 |
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 <address@hidden> > Signed-off-by: Igor Mammedov <address@hidden> > Reviewed-by: David Gibson <address@hidden> Reviewed-by: Shannon Zhao <address@hidden> -- Shannon
[Prev in Thread] | Current Thread | [Next in Thread] |