mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
cpumask: convert mm/
Impact: Use new API Convert kernel mm functions to use struct cpumask. We skip include/linux/percpu.h and mm/allocpercpu.c, which are in flux. Signed-off-by: Rusty Russell <[email protected]> Signed-off-by: Mike Travis <[email protected]> Reviewed-by: Christoph Lameter <[email protected]>
This commit is contained in:
parent
41c7bb9588
commit
174596a0b9
5 changed files with 28 additions and 16 deletions
|
|
@ -20,7 +20,7 @@
|
|||
DEFINE_PER_CPU(struct vm_event_state, vm_event_states) = {{0}};
|
||||
EXPORT_PER_CPU_SYMBOL(vm_event_states);
|
||||
|
||||
static void sum_vm_events(unsigned long *ret, cpumask_t *cpumask)
|
||||
static void sum_vm_events(unsigned long *ret, const struct cpumask *cpumask)
|
||||
{
|
||||
int cpu;
|
||||
int i;
|
||||
|
|
@ -43,7 +43,7 @@ static void sum_vm_events(unsigned long *ret, cpumask_t *cpumask)
|
|||
void all_vm_events(unsigned long *ret)
|
||||
{
|
||||
get_online_cpus();
|
||||
sum_vm_events(ret, &cpu_online_map);
|
||||
sum_vm_events(ret, cpu_online_mask);
|
||||
put_online_cpus();
|
||||
}
|
||||
EXPORT_SYMBOL_GPL(all_vm_events);
|
||||
|
|
|
|||
Loading…
Reference in a new issue