Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0-only */
0002 /*
0003  * Header file for CPUFreq ondemand governor and related code.
0004  *
0005  * Copyright (C) 2016, Intel Corporation
0006  * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
0007  */
0008 
0009 #include "cpufreq_governor.h"
0010 
0011 struct od_policy_dbs_info {
0012     struct policy_dbs_info policy_dbs;
0013     unsigned int freq_lo;
0014     unsigned int freq_lo_delay_us;
0015     unsigned int freq_hi_delay_us;
0016     unsigned int sample_type:1;
0017 };
0018 
0019 static inline struct od_policy_dbs_info *to_dbs_info(struct policy_dbs_info *policy_dbs)
0020 {
0021     return container_of(policy_dbs, struct od_policy_dbs_info, policy_dbs);
0022 }
0023 
0024 struct od_dbs_tuners {
0025     unsigned int powersave_bias;
0026 };