All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ACPI / processor: Remove unused macros in processor_driver.c
@ 2013-06-24  7:36 Hanjun Guo
  2013-06-24 22:32 ` Rafael J. Wysocki
  0 siblings, 1 reply; 2+ messages in thread
From: Hanjun Guo @ 2013-06-24  7:36 UTC (permalink / raw)
  To: Rafael J. Wysocki
  Cc: linux-acpi, linux-kernel, patches, linaro-kernel, Hanjun Guo

ACPI_PROCESSOR_FILE_INFO, ACPI_PROCESSOR_FILE_THROTTLING and
ACPI_PROCESSOR_FILE_LIMIT are used for procfs, but this feature was removed
in commit d09fe555 (ACPI processor: remove deprecated ACPI procfs I/F) long
ago. So, these macros should also be removed.

ACPI_PROCESSOR_LIMIT_USER and ACPI_PROCESSOR_LIMIT_THERMAL are not used
by any code, remove them too.

Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>
---
 drivers/acpi/processor_driver.c |    6 ------
 1 file changed, 6 deletions(-)

diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
index d93963f..823be116 100644
--- a/drivers/acpi/processor_driver.c
+++ b/drivers/acpi/processor_driver.c
@@ -43,16 +43,10 @@
 
 #define PREFIX "ACPI: "
 
-#define ACPI_PROCESSOR_FILE_INFO	"info"
-#define ACPI_PROCESSOR_FILE_THROTTLING	"throttling"
-#define ACPI_PROCESSOR_FILE_LIMIT	"limit"
 #define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80
 #define ACPI_PROCESSOR_NOTIFY_POWER	0x81
 #define ACPI_PROCESSOR_NOTIFY_THROTTLING	0x82
 
-#define ACPI_PROCESSOR_LIMIT_USER	0
-#define ACPI_PROCESSOR_LIMIT_THERMAL	1
-
 #define _COMPONENT		ACPI_PROCESSOR_COMPONENT
 ACPI_MODULE_NAME("processor_driver");
 
-- 
1.7.9.5


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ACPI / processor: Remove unused macros in processor_driver.c
  2013-06-24  7:36 [PATCH] ACPI / processor: Remove unused macros in processor_driver.c Hanjun Guo
@ 2013-06-24 22:32 ` Rafael J. Wysocki
  0 siblings, 0 replies; 2+ messages in thread
From: Rafael J. Wysocki @ 2013-06-24 22:32 UTC (permalink / raw)
  To: Hanjun Guo; +Cc: linux-acpi, linux-kernel, patches, linaro-kernel

On Monday, June 24, 2013 03:36:33 PM Hanjun Guo wrote:
> ACPI_PROCESSOR_FILE_INFO, ACPI_PROCESSOR_FILE_THROTTLING and
> ACPI_PROCESSOR_FILE_LIMIT are used for procfs, but this feature was removed
> in commit d09fe555 (ACPI processor: remove deprecated ACPI procfs I/F) long
> ago. So, these macros should also be removed.
> 
> ACPI_PROCESSOR_LIMIT_USER and ACPI_PROCESSOR_LIMIT_THERMAL are not used
> by any code, remove them too.
> 
> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org>

Queued up for 3.11.

Thanks,
Rafael


> ---
>  drivers/acpi/processor_driver.c |    6 ------
>  1 file changed, 6 deletions(-)
> 
> diff --git a/drivers/acpi/processor_driver.c b/drivers/acpi/processor_driver.c
> index d93963f..823be116 100644
> --- a/drivers/acpi/processor_driver.c
> +++ b/drivers/acpi/processor_driver.c
> @@ -43,16 +43,10 @@
>  
>  #define PREFIX "ACPI: "
>  
> -#define ACPI_PROCESSOR_FILE_INFO	"info"
> -#define ACPI_PROCESSOR_FILE_THROTTLING	"throttling"
> -#define ACPI_PROCESSOR_FILE_LIMIT	"limit"
>  #define ACPI_PROCESSOR_NOTIFY_PERFORMANCE 0x80
>  #define ACPI_PROCESSOR_NOTIFY_POWER	0x81
>  #define ACPI_PROCESSOR_NOTIFY_THROTTLING	0x82
>  
> -#define ACPI_PROCESSOR_LIMIT_USER	0
> -#define ACPI_PROCESSOR_LIMIT_THERMAL	1
> -
>  #define _COMPONENT		ACPI_PROCESSOR_COMPONENT
>  ACPI_MODULE_NAME("processor_driver");
>  
> 
-- 
I speak only for myself.
Rafael J. Wysocki, Intel Open Source Technology Center.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-06-24 22:23 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-06-24  7:36 [PATCH] ACPI / processor: Remove unused macros in processor_driver.c Hanjun Guo
2013-06-24 22:32 ` Rafael J. Wysocki

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.