Message ID | 1350640292-22468-1-git-send-email-daniel.lezcano@linaro.org |
---|---|
State | New |
Headers | show |
On Friday, October 19, 2012 11:51:28 AM Daniel Lezcano wrote: > The different definitions are not used anywhere in the code. > > Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> If you tried to build the kernel with this patch applied, I wonder what .config you used. :-) It doesn't build for me, because _COMPONENT is actually used. And in the future, please check the *code* in addition to build-testing. Thanks, Rafael > --- > drivers/acpi/processor_idle.c | 7 ------- > 1 files changed, 0 insertions(+), 7 deletions(-) > > diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c > index e8086c7..1f536a3 100644 > --- a/drivers/acpi/processor_idle.c > +++ b/drivers/acpi/processor_idle.c > @@ -60,14 +60,7 @@ > #include <asm/processor.h> > > #define PREFIX "ACPI: " > - > -#define ACPI_PROCESSOR_CLASS "processor" > -#define _COMPONENT ACPI_PROCESSOR_COMPONENT > ACPI_MODULE_NAME("processor_idle"); > -#define PM_TIMER_TICK_NS (1000000000ULL/PM_TIMER_FREQUENCY) > -#define C2_OVERHEAD 1 /* 1us */ > -#define C3_OVERHEAD 1 /* 1us */ > -#define PM_TIMER_TICKS_TO_US(p) (((p) * 1000)/(PM_TIMER_FREQUENCY/1000)) > > static unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER; > module_param(max_cstate, uint, 0000); >
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index e8086c7..1f536a3 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c @@ -60,14 +60,7 @@ #include <asm/processor.h> #define PREFIX "ACPI: " - -#define ACPI_PROCESSOR_CLASS "processor" -#define _COMPONENT ACPI_PROCESSOR_COMPONENT ACPI_MODULE_NAME("processor_idle"); -#define PM_TIMER_TICK_NS (1000000000ULL/PM_TIMER_FREQUENCY) -#define C2_OVERHEAD 1 /* 1us */ -#define C3_OVERHEAD 1 /* 1us */ -#define PM_TIMER_TICKS_TO_US(p) (((p) * 1000)/(PM_TIMER_FREQUENCY/1000)) static unsigned int max_cstate __read_mostly = ACPI_PROCESSOR_MAX_POWER; module_param(max_cstate, uint, 0000);
The different definitions are not used anywhere in the code. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- drivers/acpi/processor_idle.c | 7 ------- 1 files changed, 0 insertions(+), 7 deletions(-)