Skip to content

Commit

Permalink
Merge branch 'pdc' into release
Browse files Browse the repository at this point in the history
  • Loading branch information
lenb committed Dec 24, 2009
2 parents 309ddc5 + e59897f commit da3df85
Show file tree
Hide file tree
Showing 9 changed files with 114 additions and 220 deletions.
6 changes: 6 additions & 0 deletions arch/ia64/include/asm/acpi.h
Expand Up @@ -132,6 +132,12 @@ extern int __devinitdata pxm_to_nid_map[MAX_PXM_DOMAINS];
extern int __initdata nid_to_pxm_map[MAX_NUMNODES];
#endif

static inline bool arch_has_acpi_pdc(void) { return true; }
static inline void arch_acpi_set_pdc_bits(u32 *buf)
{
buf[2] |= ACPI_PDC_EST_CAPABILITY_SMP;
}

#define acpi_unlazy_tlb(x)

#ifdef CONFIG_ACPI_NUMA
Expand Down
4 changes: 0 additions & 4 deletions arch/ia64/kernel/Makefile
Expand Up @@ -18,10 +18,6 @@ obj-$(CONFIG_IA64_GENERIC) += acpi-ext.o
obj-$(CONFIG_IA64_HP_ZX1) += acpi-ext.o
obj-$(CONFIG_IA64_HP_ZX1_SWIOTLB) += acpi-ext.o

ifneq ($(CONFIG_ACPI_PROCESSOR),)
obj-y += acpi-processor.o
endif

obj-$(CONFIG_IA64_PALINFO) += palinfo.o
obj-$(CONFIG_IOSAPIC) += iosapic.o
obj-$(CONFIG_MODULES) += module.o
Expand Down
85 changes: 0 additions & 85 deletions arch/ia64/kernel/acpi-processor.c

This file was deleted.

26 changes: 26 additions & 0 deletions arch/x86/include/asm/acpi.h
Expand Up @@ -142,6 +142,32 @@ static inline unsigned int acpi_processor_cstate_check(unsigned int max_cstate)
return max_cstate;
}

static inline bool arch_has_acpi_pdc(void)
{
struct cpuinfo_x86 *c = &cpu_data(0);
return (c->x86_vendor == X86_VENDOR_INTEL ||
c->x86_vendor == X86_VENDOR_CENTAUR);
}

static inline void arch_acpi_set_pdc_bits(u32 *buf)
{
struct cpuinfo_x86 *c = &cpu_data(0);

buf[2] |= ACPI_PDC_C_CAPABILITY_SMP;

if (cpu_has(c, X86_FEATURE_EST))
buf[2] |= ACPI_PDC_EST_CAPABILITY_SWSMP;

if (cpu_has(c, X86_FEATURE_ACPI))
buf[2] |= ACPI_PDC_T_FFH;

/*
* If mwait/monitor is unsupported, C2/C3_FFH will be disabled
*/
if (!cpu_has(c, X86_FEATURE_MWAIT))
buf[2] &= ~(ACPI_PDC_C_C2C3_FFH);
}

#else /* !CONFIG_ACPI */

#define acpi_lapic 0
Expand Down
2 changes: 1 addition & 1 deletion arch/x86/kernel/acpi/Makefile
Expand Up @@ -4,7 +4,7 @@ obj-$(CONFIG_ACPI) += boot.o
obj-$(CONFIG_ACPI_SLEEP) += sleep.o wakeup_rm.o wakeup_$(BITS).o

ifneq ($(CONFIG_ACPI_PROCESSOR),)
obj-y += cstate.o processor.o
obj-y += cstate.o
endif

$(obj)/wakeup_rm.o: $(obj)/realmode/wakeup.bin
Expand Down
101 changes: 0 additions & 101 deletions arch/x86/kernel/acpi/processor.c

This file was deleted.

2 changes: 1 addition & 1 deletion drivers/acpi/processor_core.c
Expand Up @@ -763,7 +763,7 @@ static int __cpuinit acpi_processor_add(struct acpi_device *device)
}

/* _PDC call should be done before doing anything else (if reqd.). */
acpi_processor_set_pdc(pr);
acpi_processor_set_pdc(pr->handle);

#ifdef CONFIG_CPU_FREQ
acpi_processor_ppc_has_changed(pr, 0);
Expand Down

0 comments on commit da3df85

Please sign in to comment.