powercap/drivers/dtpm: Remove unused function definition
Subsystems (2)
PATCH 1/2 powercap/drivers/dtpm: Remove unused function definition
The dtpm.h header file is exporting a function which is not implemented neither needed. Remove it.
Signed-off-by Daniel Lezcano <[email protected]>
--- include/linux/dtpm.h | 2 -- 1 file changed, 2 deletions(-)
include/linux/dtpm.h +0 -2
@@ -70,6 +70,4 @@ void dtpm_unregister(struct dtpm *dtpm);int dtpm_register (const char *name,struct dtpm *dtpm,struct dtpm *parent); -int dtpm_register_cpu (struct dtpm *parent); -#endif
Signature · 1 line
2.25.1
PATCH 2/2 powercap/drivers/dtpm: Reduce trace verbosity
The traces when registering a powerzone is at the pr_info level and should be changed to pr_debug as requested by Greg-KH.
Cc Greg KH <[email protected]>
Signed-off-by Daniel Lezcano <[email protected]>
--- drivers/powercap/dtpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/powercap/dtpm.c +3 -3
@@ -382,7 +382,7 @@ void dtpm_unregister(struct dtpm *dtpm) {powercap_unregister_zone (pct, &dtpm->zone); -pr_info ("Unregistered dtpm node '%s'\n" , dtpm->zone.name); +pr_debug ("Unregistered dtpm node '%s'\n" , dtpm->zone.name); }/**
@@ -453,8 +453,8 @@ int dtpm_register(const char *name, struct dtpm *dtpm, struct dtpm *parent) dtpm->power_limit = dtpm->power_max; } -pr_info ("Registered dtpm node '%s' / %llu-%llu uW, \n" , - dtpm->zone.name, dtpm->power_min, dtpm->power_max); +pr_debug ("Registered dtpm node '%s' / %llu-%llu uW, \n" , + dtpm->zone.name, dtpm->power_min, dtpm->power_max);mutex_unlock (&dtpm_lock);
Signature · 1 line
2.25.1
Re: [PATCH 2/2] powercap/drivers/dtpm: Reduce trace verbosity
Quoted 9 lines · Daniel Lezcano
The traces when registering a powerzone is at the
pr_infolevel and should be changed topr_debugas requested by Greg-KH.Cc Greg KH <[email protected]>Signed-off-by Daniel Lezcano <[email protected]>--- drivers/powercap/dtpm.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-)
Reviewed-by Greg Kroah-Hartman <[email protected]>