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()
393 struct dbs_data *dbs_data = to_dbs_data(to_gov_attr_set(kobj)); in cpufreq_dbs_data_release() local
394 struct dbs_governor *gov = dbs_data->gov; in cpufreq_dbs_data_release()
396 gov->exit(dbs_data); in cpufreq_dbs_data_release()
397 kfree(dbs_data); in cpufreq_dbs_data_release()
403 struct dbs_data *dbs_data; in cpufreq_dbs_governor_init() local
418 dbs_data = gov->gdbs_data; in cpufreq_dbs_governor_init()
419 if (dbs_data) { in cpufreq_dbs_governor_init()
424 policy_dbs->dbs_data = dbs_data; in cpufreq_dbs_governor_init()
427 gov_attr_set_get(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
431 dbs_data = kzalloc(sizeof(*dbs_data), GFP_KERNEL); in cpufreq_dbs_governor_init()
432 if (!dbs_data) { in cpufreq_dbs_governor_init()
437 dbs_data->gov = gov; in cpufreq_dbs_governor_init()
438 gov_attr_set_init(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_init()
440 ret = gov->init(dbs_data); in cpufreq_dbs_governor_init()
449 dbs_data->sampling_rate = max_t(unsigned int, in cpufreq_dbs_governor_init()
454 gov->gdbs_data = dbs_data; in cpufreq_dbs_governor_init()
456 policy_dbs->dbs_data = dbs_data; in cpufreq_dbs_governor_init()
461 ret = kobject_init_and_add(&dbs_data->attr_set.kobj, &gov->kobj_type, in cpufreq_dbs_governor_init()
470 kobject_put(&dbs_data->attr_set.kobj); in cpufreq_dbs_governor_init()
476 gov->exit(dbs_data); in cpufreq_dbs_governor_init()
477 kfree(dbs_data); in cpufreq_dbs_governor_init()
492 struct dbs_data *dbs_data = policy_dbs->dbs_data; in cpufreq_dbs_governor_exit() local
498 count = gov_attr_set_put(&dbs_data->attr_set, &policy_dbs->list); in cpufreq_dbs_governor_exit()
515 struct dbs_data *dbs_data = policy_dbs->dbs_data; in cpufreq_dbs_governor_start() local
525 sampling_rate = dbs_data->sampling_rate; in cpufreq_dbs_governor_start()
526 ignore_nice = dbs_data->ignore_nice_load; in cpufreq_dbs_governor_start()
527 io_busy = dbs_data->io_is_busy; in cpufreq_dbs_governor_start()