mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 10:49:33 +00:00
tools/power/x86/intel-speed-select: Introduce is_debug_enabled()
Platform specific code also needs to give debug output. Introduce is_debug_enabled() for this purpose. No functional changes are expected. Signed-off-by: Zhang Rui <rui.zhang@intel.com> [srinivas.pandruvada@linux.intel.com: changelog edits] Signed-off-by: Srinivas Pandruvada <srinivas.pandruvada@linux.intel.com>
This commit is contained in:
parent
05aab5b8c1
commit
9798768ce9
2 changed files with 6 additions and 0 deletions
|
@ -77,6 +77,11 @@ FILE *get_output_file(void)
|
||||||
return outf;
|
return outf;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
int is_debug_enabled(void)
|
||||||
|
{
|
||||||
|
return debug_flag;
|
||||||
|
}
|
||||||
|
|
||||||
void debug_printf(const char *format, ...)
|
void debug_printf(const char *format, ...)
|
||||||
{
|
{
|
||||||
va_list args;
|
va_list args;
|
||||||
|
|
|
@ -216,6 +216,7 @@ extern int get_max_punit_core_id(struct isst_id *id);
|
||||||
|
|
||||||
/* Common interfaces */
|
/* Common interfaces */
|
||||||
FILE *get_output_file(void);
|
FILE *get_output_file(void);
|
||||||
|
extern int is_debug_enabled(void);
|
||||||
extern void debug_printf(const char *format, ...);
|
extern void debug_printf(const char *format, ...);
|
||||||
extern int out_format_is_json(void);
|
extern int out_format_is_json(void);
|
||||||
extern void set_isst_id(struct isst_id *id, int cpu);
|
extern void set_isst_id(struct isst_id *id, int cpu);
|
||||||
|
|
Loading…
Reference in a new issue