Re: [PATCH] Fix test/prefered v2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> There is numa_num_possible_nodes(). It determines the size of

Ah that's better.

> the kernel nodemask_t (MAX_NUMNODES) by counting the size of Mems_allowed:
> in /proc/self/status. (And if that is not available, falls back to a
> procedure very similar to your max_numnode().)
> The patch, but using numa_num_possible_nodes() is below.
> It returns the same results, in my tests.
> 
> Is there some subtle difference between numa_num_possible_nodes() and
> your function that I'm missing?

No your patch should be ok.

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-numa" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux SCSI]     [Devices]

  Powered by Linux