restore lost packages from 0.2.3 + fix overwritten 0.2.4 files
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
This commit is contained in:
@@ -0,0 +1,89 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* devfreq_cooling: Thermal cooling device implementation for devices using
|
||||
* devfreq
|
||||
*
|
||||
* Copyright (C) 2014-2015 ARM Limited
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __DEVFREQ_COOLING_H__
|
||||
#define __DEVFREQ_COOLING_H__
|
||||
|
||||
#include <linux/devfreq.h>
|
||||
#include <linux/thermal.h>
|
||||
|
||||
|
||||
/**
|
||||
* struct devfreq_cooling_power - Devfreq cooling power ops
|
||||
* @get_real_power: When this is set, the framework uses it to ask the
|
||||
* device driver for the actual power.
|
||||
* Some devices have more sophisticated methods
|
||||
* (like power counters) to approximate the actual power
|
||||
* that they use.
|
||||
* This function provides more accurate data to the
|
||||
* thermal governor. When the driver does not provide
|
||||
* such function, framework just uses pre-calculated
|
||||
* table and scale the power by 'utilization'
|
||||
* (based on 'busy_time' and 'total_time' taken from
|
||||
* devfreq 'last_status').
|
||||
* The value returned by this function must be lower
|
||||
* or equal than the maximum power value
|
||||
* for the current state
|
||||
* (which can be found in power_table[state]).
|
||||
* When this interface is used, the power_table holds
|
||||
* max total (static + dynamic) power value for each OPP.
|
||||
*/
|
||||
struct devfreq_cooling_power {
|
||||
int (*get_real_power)(struct devfreq *df, u32 *power,
|
||||
unsigned long freq, unsigned long voltage);
|
||||
};
|
||||
|
||||
#ifdef CONFIG_DEVFREQ_THERMAL
|
||||
|
||||
struct thermal_cooling_device *
|
||||
of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
|
||||
struct devfreq_cooling_power *dfc_power);
|
||||
struct thermal_cooling_device *
|
||||
of_devfreq_cooling_register(struct device_node *np, struct devfreq *df);
|
||||
struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df);
|
||||
void devfreq_cooling_unregister(struct thermal_cooling_device *dfc);
|
||||
struct thermal_cooling_device *
|
||||
devfreq_cooling_em_register(struct devfreq *df,
|
||||
struct devfreq_cooling_power *dfc_power);
|
||||
|
||||
#else /* !CONFIG_DEVFREQ_THERMAL */
|
||||
|
||||
static inline struct thermal_cooling_device *
|
||||
of_devfreq_cooling_register_power(struct device_node *np, struct devfreq *df,
|
||||
struct devfreq_cooling_power *dfc_power)
|
||||
{
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
static inline struct thermal_cooling_device *
|
||||
of_devfreq_cooling_register(struct device_node *np, struct devfreq *df)
|
||||
{
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
static inline struct thermal_cooling_device *
|
||||
devfreq_cooling_register(struct devfreq *df)
|
||||
{
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
static inline struct thermal_cooling_device *
|
||||
devfreq_cooling_em_register(struct devfreq *df,
|
||||
struct devfreq_cooling_power *dfc_power)
|
||||
{
|
||||
return ERR_PTR(-EINVAL);
|
||||
}
|
||||
|
||||
static inline void
|
||||
devfreq_cooling_unregister(struct thermal_cooling_device *dfc)
|
||||
{
|
||||
}
|
||||
|
||||
#endif /* CONFIG_DEVFREQ_THERMAL */
|
||||
#endif /* __DEVFREQ_COOLING_H__ */
|
||||
Reference in New Issue
Block a user