Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
50 lines
1.5 KiB
C
50 lines
1.5 KiB
C
/*
|
|
* Copyright (C) 2017 MediaTek Inc.
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 as
|
|
* published by the Free Software Foundation.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#undef TRACE_SYSTEM
|
|
#define TRACE_SYSTEM thermal
|
|
|
|
#if !defined(_MTK_THERMAL_TRACE_H) || defined(TRACE_HEADER_MULTI_READ)
|
|
#define _MTK_THERMAL_TRACE_H
|
|
|
|
#include <linux/tracepoint.h>
|
|
|
|
TRACE_EVENT(cooling_device_state,
|
|
TP_PROTO(int device, unsigned long state),
|
|
TP_ARGS(device, state), TP_STRUCT__entry(__field(int, device)
|
|
__field(unsigned long, state)
|
|
),
|
|
TP_fast_assign(__entry->device = device;
|
|
__entry->state = state;),
|
|
TP_printk("cooling_device=%d, state=%lu\n",
|
|
__entry->device, __entry->state)
|
|
);
|
|
|
|
TRACE_EVENT(thermal_zone_state,
|
|
TP_PROTO(int device, int state),
|
|
TP_ARGS(device, state), TP_STRUCT__entry(__field(int, device)
|
|
__field(int, state)
|
|
),
|
|
TP_fast_assign(__entry->device = device;
|
|
__entry->state = state;),
|
|
TP_printk("thermal_zone=%d, state=%d\n",
|
|
__entry->device, __entry->state)
|
|
);
|
|
#endif /* _MTK_THERMAL_TRACE_H */
|
|
|
|
/* This part must be outside protection */
|
|
#undef TRACE_INCLUDE_PATH
|
|
#define TRACE_INCLUDE_PATH .
|
|
#define TRACE_INCLUDE_FILE mach/mtk_thermal_trace
|
|
#include <trace/define_trace.h>
|