diff options
author | Mike Travis <travis@sgi.com> | 2008-12-16 20:33:54 -0500 |
---|---|---|
committer | Mike Travis <travis@sgi.com> | 2008-12-16 20:40:56 -0500 |
commit | 95d313cf1c1ecedc8bec5727b09bdacbf67dfc45 (patch) | |
tree | ee4aa8aff232bb30bb725c5670bb67d73484022d /arch/x86/include/asm/genapic_64.h | |
parent | a1681965011916c2f1f0f1f87e70784f5d5d5be5 (diff) |
x86: Add cpu_mask_to_apicid_and
Impact: new API
Add a helper function that takes two cpumask's, and's them and then
returns the apicid of the result. This removes a need in io_apic.c
that uses a temporary cpumask to hold (mask & cfg->domain).
Signed-off-by: Mike Travis <travis@sgi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Diffstat (limited to 'arch/x86/include/asm/genapic_64.h')
-rw-r--r-- | arch/x86/include/asm/genapic_64.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/genapic_64.h b/arch/x86/include/asm/genapic_64.h index a020e7d35a40..301c7f41125d 100644 --- a/arch/x86/include/asm/genapic_64.h +++ b/arch/x86/include/asm/genapic_64.h | |||
@@ -31,6 +31,8 @@ struct genapic { | |||
31 | void (*send_IPI_self)(int vector); | 31 | void (*send_IPI_self)(int vector); |
32 | /* */ | 32 | /* */ |
33 | unsigned int (*cpu_mask_to_apicid)(const cpumask_t *cpumask); | 33 | unsigned int (*cpu_mask_to_apicid)(const cpumask_t *cpumask); |
34 | unsigned int (*cpu_mask_to_apicid_and)(const cpumask_t *cpumask, | ||
35 | const cpumask_t *andmask); | ||
34 | unsigned int (*phys_pkg_id)(int index_msb); | 36 | unsigned int (*phys_pkg_id)(int index_msb); |
35 | unsigned int (*get_apic_id)(unsigned long x); | 37 | unsigned int (*get_apic_id)(unsigned long x); |
36 | unsigned long (*set_apic_id)(unsigned int id); | 38 | unsigned long (*set_apic_id)(unsigned int id); |