Orange Pi5 kernel

Deprecated Linux kernel 5.10.110 for OrangePi 5/5B/5+ boards

3 Commits   0 Branches   0 Tags
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  1) /* SPDX-License-Identifier: GPL-2.0-only */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  2) /*
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  3)  * Header file for CPUFreq ondemand governor and related code.
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  4)  *
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  5)  * Copyright (C) 2016, Intel Corporation
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  6)  * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  7)  */
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  8) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300  9) #include "cpufreq_governor.h"
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 10) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 11) struct od_policy_dbs_info {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 12) 	struct policy_dbs_info policy_dbs;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 13) 	unsigned int freq_lo;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 14) 	unsigned int freq_lo_delay_us;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 15) 	unsigned int freq_hi_delay_us;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 16) 	unsigned int sample_type:1;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 17) };
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 18) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 19) static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 20) {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 21) 	return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 22) }
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 23) 
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 24) struct od_dbs_tuners {
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 25) 	unsigned int powersave_bias;
^8f3ce5b39 (kx 2023-10-28 12:00:06 +0300 26) };