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)
30 lines
801 B
C
30 lines
801 B
C
/*
|
|
* Header file for CPUFreq ondemand governor and related code.
|
|
*
|
|
* Copyright (C) 2016, Intel Corporation
|
|
* Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
|
|
*
|
|
* 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.
|
|
*/
|
|
|
|
#include "cpufreq_governor.h"
|
|
|
|
struct od_policy_dbs_info {
|
|
struct policy_dbs_info policy_dbs;
|
|
unsigned int freq_lo;
|
|
unsigned int freq_lo_delay_us;
|
|
unsigned int freq_hi_delay_us;
|
|
unsigned int sample_type:1;
|
|
};
|
|
|
|
static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
|
|
{
|
|
return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
|
|
}
|
|
|
|
struct od_dbs_tuners {
|
|
unsigned int powersave_bias;
|
|
};
|