search for: cpumask_weight

Displaying 17 results from an estimated 17 matches for "cpumask_weight".

2020 Apr 08
5
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...se [-Wtautological-pointer-compare] if (downed_cpus == NULL && ^~~~~~~~~~~ ~~~~ arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' equal to a null pointer is always false [-Wtautological-pointer-compare] if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) ^~~~~~~~~~~ ~~~~ 2 warnings generated. Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added cpumask_available to fix warnings of this nature. Use that here so that clang does not warn regardless of CONFIG_CPUMASK_OFFSTACK's value. L...
2020 May 18
2
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...if (downed_cpus == NULL && > > ^~~~~~~~~~~ ~~~~ > > arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' > > equal to a null pointer is always false [-Wtautological-pointer-compare] > > if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) > > ^~~~~~~~~~~ ~~~~ > > 2 warnings generated. > > > > Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added > > cpumask_available to fix warnings of this nature. Use that here so that > > clang does not...
2020 Apr 08
0
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...r-compare] > if (downed_cpus == NULL && > ^~~~~~~~~~~ ~~~~ > arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' > equal to a null pointer is always false [-Wtautological-pointer-compare] > if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) > ^~~~~~~~~~~ ~~~~ > 2 warnings generated. > > Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added > cpumask_available to fix warnings of this nature. Use that here so that > clang does not warn regardless of CONFIG_CPU...
2020 Apr 08
1
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...if (downed_cpus == NULL && > > ^~~~~~~~~~~ ~~~~ > > arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' > > equal to a null pointer is always false [-Wtautological-pointer-compare] > > if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) > > ^~~~~~~~~~~ ~~~~ > > 2 warnings generated. > > > > Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added > > cpumask_available to fix warnings of this nature. Use that here so that > > clang does not...
2020 May 18
0
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...r-compare] > if (downed_cpus == NULL && > ^~~~~~~~~~~ ~~~~ > arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' > equal to a null pointer is always false [-Wtautological-pointer-compare] > if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) > ^~~~~~~~~~~ ~~~~ > 2 warnings generated. > > Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added > cpumask_available to fix warnings of this nature. Use that here so that > clang does not warn regardless of CONFIG_CP...
2020 May 18
0
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...== NULL && > > > ^~~~~~~~~~~ ~~~~ > > > arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' > > > equal to a null pointer is always false [-Wtautological-pointer-compare] > > > if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) > > > ^~~~~~~~~~~ ~~~~ > > > 2 warnings generated. > > > > > > Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added > > > cpumask_available to fix warnings of this nature. Use that here so that...
2011 Oct 20
0
[PATCH 07/12] cpufreq: allocate CPU masks dynamically
...pi/pmstat.c 2011-10-14 14:53:51.000000000 +0200 @@ -211,11 +211,11 @@ static int get_cpufreq_para(struct xen_s list_for_each(pos, &cpufreq_governor_list) gov_num++; - if ( (op->u.get_para.cpu_num != cpus_weight(policy->cpus)) || + if ( (op->u.get_para.cpu_num != cpumask_weight(policy->cpus)) || (op->u.get_para.freq_num != pmpt->perf.state_count) || (op->u.get_para.gov_num != gov_num) ) { - op->u.get_para.cpu_num = cpus_weight(policy->cpus); + op->u.get_para.cpu_num = cpumask_weight(policy->cpus);...
2013 May 07
1
[PATCH V2] xen/arm: implement smp_call_function
...} - -void on_selected_cpus( - const cpumask_t *selected, - void (*func) (void *info), - void *info, - int wait) -{ - unsigned int nr_cpus; - - ASSERT(local_irq_is_enabled()); - - spin_lock(&call_lock); - - cpumask_copy(&call_data.selected, selected); - - nr_cpus = cpumask_weight(&call_data.selected); - if ( nr_cpus == 0 ) - goto out; - - call_data.func = func; - call_data.info = info; - call_data.wait = wait; - - send_IPI_mask(&call_data.selected, CALL_FUNCTION_VECTOR); + send_IPI_mask(mask, CALL_FUNCTION_VECTOR); - if ( cpumask_test_c...
2020 Apr 15
0
[PATCH] x86: mmiotrace: Use cpumask_available for cpumask_var_t variables
...r-compare] > if (downed_cpus == NULL && > ^~~~~~~~~~~ ~~~~ > arch/x86/mm/mmio-mod.c:405:6: warning: comparison of array 'downed_cpus' > equal to a null pointer is always false [-Wtautological-pointer-compare] > if (downed_cpus == NULL || cpumask_weight(downed_cpus) == 0) > ^~~~~~~~~~~ ~~~~ > 2 warnings generated. > > Commit f7e30f01a9e2 ("cpumask: Add helper cpumask_available()") added > cpumask_available to fix warnings of this nature. Use that here so that > clang does not warn regardless of CONFIG_CP...
2020 Apr 08
0
[RFC PATCH 15/26] x86/alternatives: Non-emulated text poking
...int __maybe_unused text_poke_late(patch_worker_t worker, void *stage) > +{ > + int ret; > + > + lockdep_assert_held(&text_mutex); > + > + if (system_state != SYSTEM_RUNNING) > + return -EINVAL; > + > + text_poke_state.stage = stage; > + text_poke_state.num_acks = cpumask_weight(cpu_online_mask); > + text_poke_state.head = &alt_modules; > + > + text_poke_state.patch_worker = worker; > + text_poke_state.state = PATCH_SYNC_DONE; /* Start state */ > + text_poke_state.primary_cpu = smp_processor_id(); > + > + /* > + * Run the worker on all online C...
2013 Aug 28
0
[PATCH] percpu ida: Switch to cpumask_t, add some comments
...unsigned freelist[]; }; @@ -1209,21 +1215,21 @@ static inline void steal_tags(struct percpu_ida *pool, unsigned cpus_have_tags, cpu = pool->cpu_last_stolen; struct percpu_ida_cpu *remote; - for (cpus_have_tags = bitmap_weight(pool->cpus_have_tags, nr_cpu_ids); + for (cpus_have_tags = cpumask_weight(&pool->cpus_have_tags); cpus_have_tags * IDA_PCPU_SIZE > pool->nr_tags / 2; cpus_have_tags--) { - cpu = find_next_bit(pool->cpus_have_tags, nr_cpu_ids, cpu); + cpu = cpumask_next(cpu, &pool->cpus_have_tags); - if (cpu == nr_cpu_ids) - cpu = find_first_bit...
2013 Aug 20
5
[PATCH-v3 1/4] idr: Percpu ida
On Fri, 16 Aug 2013 23:09:06 +0000 "Nicholas A. Bellinger" <nab at linux-iscsi.org> wrote: > From: Kent Overstreet <kmo at daterainc.com> > > Percpu frontend for allocating ids. With percpu allocation (that works), > it's impossible to guarantee it will always be possible to allocate all > nr_tags - typically, some will be stuck on a remote percpu
2013 Aug 20
5
[PATCH-v3 1/4] idr: Percpu ida
On Fri, 16 Aug 2013 23:09:06 +0000 "Nicholas A. Bellinger" <nab at linux-iscsi.org> wrote: > From: Kent Overstreet <kmo at daterainc.com> > > Percpu frontend for allocating ids. With percpu allocation (that works), > it's impossible to guarantee it will always be possible to allocate all > nr_tags - typically, some will be stuck on a remote percpu
2018 Jun 12
8
[PATCH 0/3] Use sbitmap instead of percpu_ida
Removing the percpu_ida code nets over 400 lines of removal. It's not as spectacular as deleting an entire architecture, but it's still a worthy reduction in lines of code. Untested due to lack of hardware and not understanding how to set up a target platform. Changes from v1: - Fixed bugs pointed out by Jens in iscsit_wait_for_tag() - Abstracted out tag freeing as requested by Bart
2018 Jun 12
8
[PATCH 0/3] Use sbitmap instead of percpu_ida
Removing the percpu_ida code nets over 400 lines of removal. It's not as spectacular as deleting an entire architecture, but it's still a worthy reduction in lines of code. Untested due to lack of hardware and not understanding how to set up a target platform. Changes from v1: - Fixed bugs pointed out by Jens in iscsit_wait_for_tag() - Abstracted out tag freeing as requested by Bart
2018 May 15
6
[PATCH 0/2] Use sbitmap instead of percpu_ida
From: Matthew Wilcox <mawilcox at microsoft.com> This is a pretty rough-and-ready conversion of the target drivers from using percpu_ida to sbitmap. It compiles; I don't have a target setup, so it's completely untested. I haven't tried to do anything particularly clever here, so it's possible that, for example, the wait queue in iscsi_target_util could be more clever, like
2013 Sep 23
57
[PATCH RFC v13 00/20] Introduce PVH domU support
This patch series is a reworking of a series developed by Mukesh Rathor at Oracle. The entirety of the design and development was done by him; I have only reworked, reorganized, and simplified things in a way that I think makes more sense. The vast majority of the credit for this effort therefore goes to him. This version is labelled v13 because it is based on his most recent series, v11.