• Home
  • Raw
  • Download

Lines Matching refs:tunables

21 	struct sugov_tunables	*tunables;  member
517 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_show() local
519 return sprintf(buf, "%u\n", tunables->rate_limit_us); in rate_limit_us_show()
525 struct sugov_tunables *tunables = to_sugov_tunables(attr_set); in rate_limit_us_store() local
532 tunables->rate_limit_us = rate_limit_us; in rate_limit_us_store()
648 struct sugov_tunables *tunables; in sugov_tunables_alloc() local
650 tunables = kzalloc(sizeof(*tunables), GFP_KERNEL); in sugov_tunables_alloc()
651 if (tunables) { in sugov_tunables_alloc()
652 gov_attr_set_init(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_tunables_alloc()
654 global_tunables = tunables; in sugov_tunables_alloc()
656 return tunables; in sugov_tunables_alloc()
668 struct sugov_tunables *tunables; in sugov_init() local
695 sg_policy->tunables = global_tunables; in sugov_init()
701 tunables = sugov_tunables_alloc(sg_policy); in sugov_init()
702 if (!tunables) { in sugov_init()
707 tunables->rate_limit_us = cpufreq_policy_transition_delay_us(policy); in sugov_init()
710 sg_policy->tunables = tunables; in sugov_init()
712 ret = kobject_init_and_add(&tunables->attr_set.kobj, &sugov_tunables_ktype, in sugov_init()
723 kobject_put(&tunables->attr_set.kobj); in sugov_init()
744 struct sugov_tunables *tunables = sg_policy->tunables; in sugov_exit() local
749 count = gov_attr_set_put(&tunables->attr_set, &sg_policy->tunables_hook); in sugov_exit()
767 sg_policy->freq_update_delay_ns = sg_policy->tunables->rate_limit_us * NSEC_PER_USEC; in sugov_start()