Re: [PATCH 6/7] dynamic debug v2 - convert cpufreq

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Jason Baron <jbaron@...>
Cc: <linux-kernel@...>, <akpm@...>, <joe@...>, <greg@...>, <nick@...>, <randy.dunlap@...>
Date: Tuesday, July 15, 2008 - 7:07 pm

Hi,

On Tue, Jul 15, 2008 at 05:36:13PM -0400, Jason Baron wrote:

what's contained in this file (couldn't find it in this or one of the other
diffs, but may have missed it).


Hm.... What about leaving this as it is, renaming the
drivers/cpufreq/cpufreq.c function to __cpufreq_debug_printk(), and then
adding to include/linux/cpufreq.h

#define cpufreq_debug_printk(type, prefix, msg...) do { \
	if (dynamic_dbg_enabled(TYPE_FLAG, type, cpufreq_debug))
		cpufreq_debug_printk(type, prefix, msg); \
	} while (0)

...

can't we just depend on thing on another?


cpufreq.cpufreq_debug is ugly and not backwards compatible... what about 

module_param_named(debug, cpufreq_debug, uint, 0644) [or the other way
around, I always forget...])

Best,
	Dominik
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 6/7] dynamic debug v2 - convert cpufreq, Jason Baron, (Tue Jul 15, 5:36 pm)
Re: [PATCH 6/7] dynamic debug v2 - convert cpufreq, Dominik Brodowski, (Tue Jul 15, 7:07 pm)
Re: [PATCH 6/7] dynamic debug v2 - convert cpufreq, Jason Baron, (Thu Jul 17, 5:05 pm)
Re: [PATCH 6/7] dynamic debug v2 - convert cpufreq, Dominik Brodowski, (Thu Jul 17, 5:27 pm)
Re: [PATCH 6/7] dynamic debug v2 - convert cpufreq, Jason Baron, (Thu Jul 17, 5:46 pm)
Re: [PATCH 6/7] dynamic debug v2 - convert cpufreq, Dominik Brodowski, (Thu Jul 17, 6:20 pm)