Hi all,
I would like to support acpi cpufreq & cpuidle for ARM.
For supporting that, I tried to implement acpi cpufreq & cpuidle for ARM with ACPI. This patch is based on http://git.linaro.org/leg/acpi/leg-kernel.git.
[CPUFREQ] I tried to separate this code into 3 parts which are common, x86-specific and arm-specific code. But as you know, there are too much x86-specific code in acpi-cpufreq.c When I tried to implement acpi-cpufreq-arm, there were a lot of compile error(due to x86-specific code). So I used #ifdef CONFIG_X86 to solve those errors.(and some hack codes) Later I will remove "#ifdef CONFIG_X86".
And, if "ARM64 / ACPI: Introduce arch_register/unregister_cpu() for arm64" is merged, Then I can remove #ifdef for arch_un/register_cpu.
[CPUIDLE] As Sudeep mentioned, I tried to use FFH. So I made cstate.c file in arm/arm64/kernel.(based on arch/x86/kernel/acpi/cstate.c) But I am not sure whether I implemented it properly.
Jonghwan Choi (7): ACPI-Fix-compile-error-in-arch-x86-kernel-setup.c.patch cpufreq-Change-CONFIG_-name-from-X86_ACPI_CPUFREQ-to.patch acpi-Use-Hacks-to-allow-compilation-on-arm-environme.patch arm64-Change-struct-cpuinfo_arm.patch cpufreq-Add-ACPI-cpufreq-support-for-ARM.patch acpi-Add-ACPI-cpuidle-support-for-ARM.patch acpi-Allow-ACPI_PROCESSOR-for-ARM64.patch
Thanks
Best Regards