[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH v2 01/12] cpufreq: move cpufreq.h file to the xen/include/xen location
Cpufreq driver should be more generalizable (not ACPI-specific). Thus this file should be placed to more convenient location. Signed-off-by: Oleksandr Dmytryshyn <oleksandr.dmytryshyn@xxxxxxxxxxxxxxx> --- MAINTAINERS | 1 + xen/arch/x86/acpi/cpu_idle.c | 2 +- xen/arch/x86/acpi/cpufreq/cpufreq.c | 2 +- xen/arch/x86/acpi/cpufreq/powernow.c | 2 +- xen/arch/x86/acpi/power.c | 2 +- xen/arch/x86/cpu/mwait-idle.c | 2 +- xen/drivers/acpi/pmstat.c | 2 +- xen/drivers/cpufreq/cpufreq.c | 2 +- xen/drivers/cpufreq/cpufreq_misc_governors.c | 2 +- xen/drivers/cpufreq/cpufreq_ondemand.c | 4 ++-- xen/drivers/cpufreq/utility.c | 2 +- xen/include/{acpi/cpufreq => xen}/cpufreq.h | 7 +++++-- 12 files changed, 17 insertions(+), 13 deletions(-) rename xen/include/{acpi/cpufreq => xen}/cpufreq.h (98%) diff --git a/MAINTAINERS b/MAINTAINERS index 7757cdd..49f56a1 100644 --- a/MAINTAINERS +++ b/MAINTAINERS @@ -235,6 +235,7 @@ X: xen/arch/x86/acpi/boot.c X: xen/arch/x86/acpi/lib.c F: xen/drivers/cpufreq/ F: xen/include/acpi/cpufreq/ +F: xen/include/xen/cpufreq.h QEMU-DM M: Ian Jackson <ian.jackson@xxxxxxxxxxxxx> diff --git a/xen/arch/x86/acpi/cpu_idle.c b/xen/arch/x86/acpi/cpu_idle.c index 597befa..d773955 100644 --- a/xen/arch/x86/acpi/cpu_idle.c +++ b/xen/arch/x86/acpi/cpu_idle.c @@ -51,7 +51,7 @@ #include <xen/softirq.h> #include <public/platform.h> #include <public/sysctl.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> #include <asm/apic.h> #include <asm/cpuidle.h> #include <asm/mwait.h> diff --git a/xen/arch/x86/acpi/cpufreq/cpufreq.c b/xen/arch/x86/acpi/cpufreq/cpufreq.c index 4a6aeb3..5d22257 100644 --- a/xen/arch/x86/acpi/cpufreq/cpufreq.c +++ b/xen/arch/x86/acpi/cpufreq/cpufreq.c @@ -42,7 +42,7 @@ #include <asm/percpu.h> #include <asm/cpufeature.h> #include <acpi/acpi.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> enum { UNDEFINED_CAPABLE = 0, diff --git a/xen/arch/x86/acpi/cpufreq/powernow.c b/xen/arch/x86/acpi/cpufreq/powernow.c index 2c9fea2..4961d55 100644 --- a/xen/arch/x86/acpi/cpufreq/powernow.c +++ b/xen/arch/x86/acpi/cpufreq/powernow.c @@ -36,7 +36,7 @@ #include <asm/percpu.h> #include <asm/cpufeature.h> #include <acpi/acpi.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> #define CPUID_6_ECX_APERFMPERF_CAPABILITY (0x1) #define CPUID_FREQ_VOLT_CAPABILITIES 0x80000007 diff --git a/xen/arch/x86/acpi/power.c b/xen/arch/x86/acpi/power.c index f41f0de..f4a87e3 100644 --- a/xen/arch/x86/acpi/power.c +++ b/xen/arch/x86/acpi/power.c @@ -29,7 +29,7 @@ #include <asm/tboot.h> #include <asm/apic.h> #include <asm/io_apic.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> uint32_t system_reset_counter = 1; diff --git a/xen/arch/x86/cpu/mwait-idle.c b/xen/arch/x86/cpu/mwait-idle.c index 85179f2..c72219a 100644 --- a/xen/arch/x86/cpu/mwait-idle.c +++ b/xen/arch/x86/cpu/mwait-idle.c @@ -59,7 +59,7 @@ #include <asm/hpet.h> #include <asm/mwait.h> #include <asm/msr.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> #define MWAIT_IDLE_VERSION "0.4" #undef PREFIX diff --git a/xen/drivers/acpi/pmstat.c b/xen/drivers/acpi/pmstat.c index daac2da..3486148 100644 --- a/xen/drivers/acpi/pmstat.c +++ b/xen/drivers/acpi/pmstat.c @@ -40,7 +40,7 @@ #include <xen/acpi.h> #include <public/sysctl.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> #include <xen/pmstat.h> DEFINE_PER_CPU_READ_MOSTLY(struct pm_px *, cpufreq_statistic_data); diff --git a/xen/drivers/cpufreq/cpufreq.c b/xen/drivers/cpufreq/cpufreq.c index ab66884..f5f4d75 100644 --- a/xen/drivers/cpufreq/cpufreq.c +++ b/xen/drivers/cpufreq/cpufreq.c @@ -44,7 +44,7 @@ #include <asm/processor.h> #include <asm/percpu.h> #include <acpi/acpi.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> static unsigned int __read_mostly usr_min_freq; static unsigned int __read_mostly usr_max_freq; diff --git a/xen/drivers/cpufreq/cpufreq_misc_governors.c b/xen/drivers/cpufreq/cpufreq_misc_governors.c index 746bbcd..4a5510c 100644 --- a/xen/drivers/cpufreq/cpufreq_misc_governors.c +++ b/xen/drivers/cpufreq/cpufreq_misc_governors.c @@ -18,7 +18,7 @@ #include <xen/init.h> #include <xen/percpu.h> #include <xen/sched.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> /* * cpufreq userspace governor diff --git a/xen/drivers/cpufreq/cpufreq_ondemand.c b/xen/drivers/cpufreq/cpufreq_ondemand.c index 7fdba03..d490c8a 100644 --- a/xen/drivers/cpufreq/cpufreq_ondemand.c +++ b/xen/drivers/cpufreq/cpufreq_ondemand.c @@ -1,5 +1,5 @@ /* - * xen/arch/x86/acpi/cpufreq/cpufreq_ondemand.c + * xen/drivers/cpufreq/cpufreq_ondemand.c * * Copyright (C) 2001 Russell King * (C) 2003 Venkatesh Pallipadi <venkatesh.pallipadi@xxxxxxxxx>. @@ -18,7 +18,7 @@ #include <xen/types.h> #include <xen/sched.h> #include <xen/timer.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> #define DEF_FREQUENCY_UP_THRESHOLD (80) #define MIN_FREQUENCY_UP_THRESHOLD (11) diff --git a/xen/drivers/cpufreq/utility.c b/xen/drivers/cpufreq/utility.c index 519f862..3cb0b3e 100644 --- a/xen/drivers/cpufreq/utility.c +++ b/xen/drivers/cpufreq/utility.c @@ -28,7 +28,7 @@ #include <xen/sched.h> #include <xen/timer.h> #include <xen/trace.h> -#include <acpi/cpufreq/cpufreq.h> +#include <xen/cpufreq.h> #include <public/sysctl.h> struct cpufreq_driver *cpufreq_driver; diff --git a/xen/include/acpi/cpufreq/cpufreq.h b/xen/include/xen/cpufreq.h similarity index 98% rename from xen/include/acpi/cpufreq/cpufreq.h rename to xen/include/xen/cpufreq.h index f96c3e4..fa653ef 100644 --- a/xen/include/acpi/cpufreq/cpufreq.h +++ b/xen/include/xen/cpufreq.h @@ -1,5 +1,5 @@ /* - * xen/include/acpi/cpufreq/cpufreq.h + * xen/include/xen/cpufreq.h * * Copyright (C) 2001 Russell King * (C) 2002 - 2003 Dominik Brodowski <linux@xxxxxxxx> @@ -16,9 +16,12 @@ #include <xen/types.h> #include <xen/list.h> +#include <xen/percpu.h> +#include <xen/spinlock.h> +#include <xen/errno.h> #include <xen/cpumask.h> -#include "processor_perf.h" +#include <acpi/cpufreq/processor_perf.h> DECLARE_PER_CPU(spinlock_t, cpufreq_statistic_lock); -- 1.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |