Final cpumask conversion patches for 4096+ cpus
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest6 patches 6 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | cpumask: truncate mm_struct.cpu_vm_mask for CONFIG_CPUMASK_OFFSTACKarch/ include/ kernel/ +1 more | +25 | 0 replies | |
| 2/6 | cpumask: use tsk_cpumask() to access task_struct cpus_allowed.arch/ arch/ arch/ +25 more | +63 | 2 replies | |
| 3/6 | cpumask: truncate task_struct.cpus_allowed for CONFIG_CPUMASK_OFFSTACKinclude/ include/ kernel/ | +24 | 4 replies | |
| 4/6 | cpumask: select disabling obsolete cpumask functions on x86include/ include/ lib/ +1 more | +9 | 0 replies | |
| 5/6 | cpumask: remove struct cpumask definition when CONFIG_CPUMASK_OFFSTACK=yinclude/ | +15 | 0 replies | |
| 6/6 | cpumask: reduce cpumask_sizeinclude/ | +2 | 0 replies |
Reviews trailers per patch
1 of 6 patches has a Reviewed-by or Acked-by.
| Patch | David S. Miller | Paul Mundt |
|---|---|---|
| 1/6 | ||
| 2/6 | A-b | A-b |
| 3/6 | ||
| 4/6 | ||
| 5/6 | ||
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/6] Final cpumask conversion patches for 4096+ cpus
Finally, these 6 patches actually allocate short (nr_cpu_ids-bits) cpumasks and nail down the lid so the compiler will find new abuses if they creep in.
For non-CONFIG_CPUMASK_OFFSTACK:
The only visible changes are that you have to use the accessors mm_cpumask() and tsk_cpumask. They convert the bitmaps (moved to the end of those structs) to 'struct cpumask *'.
For CONFIG_CPUMASK_OFFSTACK=y:
We allocate the mm and task_struct bitmaps short (nr_cpu_ids, rather than the compile-time NR_CPUS). A couple of patches get rid of the old-style cpus_ ops so noone uses them accidentally. We don't define struct cpumask at all, which prevents accidental abuse. Finally, we reduce cpumask_size() so our dynamically-allocated cpumasks are only nr_cpu_ids big.
Cheers,
Rusty.