37 #define COMPILER_DEPENDENT_INT64 long
38 #define COMPILER_DEPENDENT_UINT64 unsigned long
48 #define ACPI_SYSTEM_XFACE
49 #define ACPI_EXTERNAL_XFACE
50 #define ACPI_INTERNAL_XFACE
51 #define ACPI_INTERNAL_VAR_XFACE
55 #define ACPI_ASM_MACROS
57 #define ACPI_DISABLE_IRQS() local_irq_disable()
58 #define ACPI_ENABLE_IRQS() local_irq_enable()
59 #define ACPI_FLUSH_CPU_CACHE()
62 ia64_acpi_acquire_global_lock (
unsigned int *lock)
64 unsigned int old,
new,
val;
67 new = (((old & ~0x3) + 2) + ((old >> 1) & 0x1));
70 return (
new < 3) ? -1 : 0;
74 ia64_acpi_release_global_lock (
unsigned int *lock)
76 unsigned int old,
new,
val;
85 #define ACPI_ACQUIRE_GLOBAL_LOCK(facs, Acq) \
86 ((Acq) = ia64_acpi_acquire_global_lock(&facs->global_lock))
88 #define ACPI_RELEASE_GLOBAL_LOCK(facs, Acq) \
89 ((Acq) = ia64_acpi_release_global_lock(&facs->global_lock))
92 #define acpi_disabled 0
94 #define acpi_pci_disabled 0
97 #define acpi_processor_cstate_check(x) (x)
98 static inline void disable_acpi(
void) { }
101 #ifdef CONFIG_IA64_GENERIC
102 const char *acpi_get_sysname (
void);
104 static inline const char *acpi_get_sysname (
void)
106 # if defined (CONFIG_IA64_HP_SIM)
108 # elif defined (CONFIG_IA64_HP_ZX1)
110 # elif defined (CONFIG_IA64_HP_ZX1_SWIOTLB)
111 return "hpzx1_swiotlb";
112 # elif defined (CONFIG_IA64_SGI_SN2)
114 # elif defined (CONFIG_IA64_SGI_UV)
116 # elif defined (CONFIG_IA64_DIG)
118 # elif defined (CONFIG_IA64_XEN_GUEST)
120 # elif defined(CONFIG_IA64_DIG_VTD)
123 # error Unknown platform. Fix acpi.c.
139 extern unsigned int can_cpei_retarget(
void);
140 extern unsigned int is_cpu_cpei_target(
unsigned int cpu);
141 extern void set_cpei_target_cpu(
unsigned int cpu);
144 #ifdef CONFIG_ACPI_HOTPLUG_CPU
145 extern int additional_cpus;
147 #define additional_cpus 0
150 #ifdef CONFIG_ACPI_NUMA
151 #if MAX_NUMNODES > 256
152 #define MAX_PXM_DOMAINS MAX_NUMNODES
154 #define MAX_PXM_DOMAINS (256)
160 static inline bool arch_has_acpi_pdc(
void) {
return true; }
161 static inline void arch_acpi_set_pdc_bits(
u32 *
buf)
166 #define acpi_unlazy_tlb(x)
168 #ifdef CONFIG_ACPI_NUMA
170 #define for_each_possible_early_cpu(cpu) \
171 for_each_cpu_mask((cpu), early_cpu_possible_map)
173 static inline void per_cpu_scan_finalize(
int min_cpus,
int reserve_cpus)
175 int low_cpu, high_cpu;
181 high_cpu =
max(low_cpu, min_cpus);
182 high_cpu =
min(high_cpu + reserve_cpus,
NR_CPUS);
184 for (cpu = low_cpu; cpu < high_cpu; cpu++) {
185 cpu_set(cpu, early_cpu_possible_map);