Eric Dumazet <[email protected]> wrote:
>
> Current sizeof(percpu_data) is NR_CPUS*sizeof(void *)
>
> This trivial patch makes percpu_data real size depends on
> highest_possible_processor_id() instead of NR_CPUS
>
> percpu_data allocations are not performance critical, we can spend few CPU
> cycles and save some ram.
hm, highest_possible_processor_id() isn't very efficient. And it's quite
dopey that it's a macro. We should turn it into a real function which
caches its return result and goes BUG if it's called before
cpu_possible_map is initialised.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
[Index of Archives]
[Kernel Newbies]
[Netfilter]
[Bugtraq]
[Photo]
[Stuff]
[Gimp]
[Yosemite News]
[MIPS Linux]
[ARM Linux]
[Linux Security]
[Linux RAID]
[Video 4 Linux]
[Linux for the blind]
[Linux Resources]