Lines Matching refs:tunables

19 	struct sugov_tunables	*tunables;  member
561 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show() local
563 return sprintf(buf, "%u\n", tunables->rate_limit_us); in rate_limit_us_show()
569 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store() local
576 tunables->rate_limit_us = rate_limit_us; in rate_limit_us_store()
716 struct sugov_tunables *tunables; in sugov_tunables_alloc() local
718 tunables = kzalloc(sizeof(*tunables), GFP_KERNEL); in sugov_tunables_alloc()
719 if (tunables) { in sugov_tunables_alloc()
720 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
722 global_tunables = tunables; in sugov_tunables_alloc()
724 return tunables; in sugov_tunables_alloc()
736 struct sugov_tunables *tunables; in sugov_init() local
763 sg_policy->tunables = global_tunables; in sugov_init()
769 tunables = sugov_tunables_alloc(sg_policy); in sugov_init()
770 if (!tunables) { in sugov_init()
775 tunables->rate_limit_us = cpufreq_policy_transition_delay_us(policy); in sugov_init()
778 sg_policy->tunables = tunables; in sugov_init()
780 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
793 kobject_put(&tunables->attr_set.kobj); in sugov_init()
814 struct sugov_tunables *tunables = sg_policy->tunables; in sugov_exit() local
819 count = gov_attr_set_put(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_exit()
839 sg_policy->freq_update_delay_ns = sg_policy->tunables->rate_limit_us * NSEC_PER_USEC; in sugov_start()