mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-24 21:54:34 -04:00
Merge "cpufreq: qcom: Add sysfs to reflect the limit frequency"
This commit is contained in:
commit
2d22a3a07e
2 changed files with 175 additions and 0 deletions
35
include/trace/events/dcvsh.h
Normal file
35
include/trace/events/dcvsh.h
Normal 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>
|
||||
Loading…
Reference in a new issue