apic.h (6398268d2bc454735f11e08705e858f9fdf5c750) apic.h (9d8e10667624ea6411f04495aef1fa4a8a778ee8)
1#ifndef _ASM_X86_APIC_H
2#define _ASM_X86_APIC_H
3
4#include <linux/cpumask.h>
5#include <linux/pm.h>
6
7#include <asm/alternative.h>
8#include <asm/cpufeature.h>

--- 601 unchanged lines hidden (view full) ---

610
611extern unsigned int
612default_cpu_mask_to_apicid(const struct cpumask *cpumask);
613
614extern unsigned int
615default_cpu_mask_to_apicid_and(const struct cpumask *cpumask,
616 const struct cpumask *andmask);
617
1#ifndef _ASM_X86_APIC_H
2#define _ASM_X86_APIC_H
3
4#include <linux/cpumask.h>
5#include <linux/pm.h>
6
7#include <asm/alternative.h>
8#include <asm/cpufeature.h>

--- 601 unchanged lines hidden (view full) ---

610
611extern unsigned int
612default_cpu_mask_to_apicid(const struct cpumask *cpumask);
613
614extern unsigned int
615default_cpu_mask_to_apicid_and(const struct cpumask *cpumask,
616 const struct cpumask *andmask);
617
618static inline void
619flat_vector_allocation_domain(int cpu, struct cpumask *retmask)
620{
621 /* Careful. Some cpus do not strictly honor the set of cpus
622 * specified in the interrupt destination when using lowest
623 * priority interrupt delivery mode.
624 *
625 * In particular there was a hyperthreading cpu observed to
626 * deliver interrupts to the wrong hyperthread when only one
627 * hyperthread was specified in the interrupt desitination.
628 */
629 cpumask_clear(retmask);
630 cpumask_bits(retmask)[0] = APIC_ALL_CPUS;
631}
632
633static inline void
634default_vector_allocation_domain(int cpu, struct cpumask *retmask)
635{
636 cpumask_copy(retmask, cpumask_of(cpu));
637}
638
618static inline unsigned long default_check_apicid_used(physid_mask_t *map, int apicid)
619{
620 return physid_isset(apicid, *map);
621}
622
623static inline unsigned long default_check_apicid_present(int bit)
624{
625 return physid_isset(bit, phys_cpu_present_map);

--- 40 unchanged lines hidden ---
639static inline unsigned long default_check_apicid_used(physid_mask_t *map, int apicid)
640{
641 return physid_isset(apicid, *map);
642}
643
644static inline unsigned long default_check_apicid_present(int bit)
645{
646 return physid_isset(bit, phys_cpu_present_map);

--- 40 unchanged lines hidden ---