Make a convenience function for allocating a cpumask buffer and
put it into tools.c. Since any caller of make_cpumask() needs
such a buffer, it is better to isolate the code in a function
rather than copy it all over the place.
Signed-off-by: Petr Tesarik <ptesarik(a)suse.cz>
---
defs.h | 1 +
kernel.c | 5 +----
tools.c | 13 +++++++++++++
3 files changed, 15 insertions(+), 4 deletions(-)