Merge "cpufreq: qcom: Add sysfs to reflect the limit frequency"

This commit is contained in:
qctecmdr 2020-04-30 12:47:31 -07:00 • committed by Gerrit - the friendly Code Review server
commit 2d22a3a07e
2 changed files with 175 additions and 0 deletions

View file

@ -0,0 +1,35 @@
/* SPDX-License-Identifier: GPL-2.0-only */
/*
* Copyright (c) 2019, The Linux Foundation. All rights reserved.
*/
#undef TRACE_SYSTEM
#define TRACE_SYSTEM dcvsh
#if !defined(_TRACE_DCVSH_H) || defined(TRACE_HEADER_MULTI_READ)
#define _TRACE_DCVSH_H
#include <linux/tracepoint.h>
TRACE_EVENT(dcvsh_freq,
TP_PROTO(unsigned long cpu, unsigned long freq),
TP_ARGS(cpu, freq),
TP_STRUCT__entry(
__field(unsigned long, cpu)
__field(unsigned long, freq)
),
TP_fast_assign(
__entry->cpu = cpu;
__entry->freq = freq;
),
TP_printk("cpu:%lu max frequency:%lu", __entry->cpu, __entry->freq)
);
#endif /* _TRACE_DCVSH_H */
/* This part must be outside protection */
#include <trace/define_trace.h>