Lines Matching refs:dbs_data
47 struct dbs_data *dbs_data = to_dbs_data(attr_set); in store_sampling_rate() local
56 dbs_data->sampling_rate = sampling_interval; in store_sampling_rate()
95 void gov_update_cpu_data(struct dbs_data *dbs_data) in gov_update_cpu_data() argument
99 list_for_each_entry(policy_dbs, &dbs_data->attr_set.policy_list, list) { in gov_update_cpu_data()
106 dbs_data->io_is_busy); in gov_update_cpu_data()
107 if (dbs_data->ignore_nice_load) in gov_update_cpu_data()
117 struct dbs_data *dbs_data = policy_dbs->dbs_data; in dbs_update() local
118 unsigned int ignore_nice = dbs_data->ignore_nice_load; in dbs_update()
128 sampling_rate = dbs_data->sampling_rate * policy_dbs->rate_mult; in dbs_update()
134 io_busy = dbs_data->io_is_busy; in dbs_update()
394 struct dbs_data *dbs_data; in cpufreq_dbs_governor_init() local
409 dbs_data = gov->gdbs_data; in cpufreq_dbs_governor_init()
410 if (dbs_data) { in cpufreq_dbs_governor_init()
415 policy_dbs->dbs_data = dbs_data; in cpufreq_dbs_governor_init()
418 gov_attr_set_get(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
422 dbs_data = kzalloc(sizeof(*dbs_data), GFP_KERNEL); in cpufreq_dbs_governor_init()
423 if (!dbs_data) { in cpufreq_dbs_governor_init()
428 gov_attr_set_init(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
430 ret = gov->init(dbs_data); in cpufreq_dbs_governor_init()
439 dbs_data->sampling_rate = max_t(unsigned int, in cpufreq_dbs_governor_init()
444 gov->gdbs_data = dbs_data; in cpufreq_dbs_governor_init()
446 policy_dbs->dbs_data = dbs_data; in cpufreq_dbs_governor_init()
450 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init()
459 kobject_put(&dbs_data->attr_set.kobj); in cpufreq_dbs_governor_init()
465 gov->exit(dbs_data); in cpufreq_dbs_governor_init()
466 kfree(dbs_data); in cpufreq_dbs_governor_init()
481 struct dbs_data *dbs_data = policy_dbs->dbs_data; in cpufreq_dbs_governor_exit() local
487 count = gov_attr_set_put(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_exit()
495 gov->exit(dbs_data); in cpufreq_dbs_governor_exit()
496 kfree(dbs_data); in cpufreq_dbs_governor_exit()
509 struct dbs_data *dbs_data = policy_dbs->dbs_data; in cpufreq_dbs_governor_start() local
519 sampling_rate = dbs_data->sampling_rate; in cpufreq_dbs_governor_start()
520 ignore_nice = dbs_data->ignore_nice_load; in cpufreq_dbs_governor_start()
521 io_busy = dbs_data->io_is_busy; in cpufreq_dbs_governor_start()