diff options
Diffstat (limited to 'arch/x86/kernel/apic/numaq_32.c')
-rw-r--r-- | arch/x86/kernel/apic/numaq_32.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/arch/x86/kernel/apic/numaq_32.c b/arch/x86/kernel/apic/numaq_32.c index eb2d466fd81a..2b55514c328b 100644 --- a/arch/x86/kernel/apic/numaq_32.c +++ b/arch/x86/kernel/apic/numaq_32.c | |||
@@ -406,16 +406,20 @@ static inline int numaq_check_phys_apicid_present(int phys_apicid) | |||
406 | * We use physical apicids here, not logical, so just return the default | 406 | * We use physical apicids here, not logical, so just return the default |
407 | * physical broadcast to stop people from breaking us | 407 | * physical broadcast to stop people from breaking us |
408 | */ | 408 | */ |
409 | static unsigned int numaq_cpu_mask_to_apicid(const struct cpumask *cpumask) | 409 | static int |
410 | numaq_cpu_mask_to_apicid(const struct cpumask *cpumask, unsigned int *apicid) | ||
410 | { | 411 | { |
411 | return 0x0F; | 412 | *apicid = 0x0F; |
413 | return 0; | ||
412 | } | 414 | } |
413 | 415 | ||
414 | static inline unsigned int | 416 | static int |
415 | numaq_cpu_mask_to_apicid_and(const struct cpumask *cpumask, | 417 | numaq_cpu_mask_to_apicid_and(const struct cpumask *cpumask, |
416 | const struct cpumask *andmask) | 418 | const struct cpumask *andmask, |
419 | unsigned int *apicid) | ||
417 | { | 420 | { |
418 | return 0x0F; | 421 | *apicid = 0x0F; |
422 | return 0; | ||
419 | } | 423 | } |
420 | 424 | ||
421 | /* No NUMA-Q box has a HT CPU, but it can't hurt to use the default code. */ | 425 | /* No NUMA-Q box has a HT CPU, but it can't hurt to use the default code. */ |