commit | b8c69af910561dac9824380337405f8298d17adb | [log] [tgz] |
---|---|---|
author | Jan Stancek <jstancek@redhat.com> | Tue Feb 23 11:00:32 2016 +0100 |
committer | Jan Stancek <jstancek@redhat.com> | Thu Mar 03 15:55:39 2016 +0100 |
tree | 527b65b20b5e178d6bb78b3ebb0033678c3b72c6 | |
parent | 75fd07ab3113639bf6d15843b04fbc770c25cc14 [diff] |
numa_helper: add flag and min_nodes parameters to is_numa() get_allowed_nodes() can fail if callers request more nodes than are available. This patch changes is_numa() by adding a parameters to it, which allows to easily check that system supports NUMA and has at least certain number of nodes and it also updates tests that used get_allowed_nodes() without checking node count first. Signed-off-by: Jan Stancek <jstancek@redhat.com> Acked-by: Cyril Hrubis <chrubis@suse.cz>