Function report |
Source Code:kernel\sched\cpufreq_schedutil.c |
Create Date:2022-07-28 09:45:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:sugov_init
Proto:static int sugov_init(struct cpufreq_policy *policy)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct cpufreq_policy * | policy |
741 | ret = 0 |
744 | If governor_data Then Return -EBUSY |
749 | sg_policy = sugov_policy_alloc(policy) |
750 | If Not sg_policy Then |
752 | Go to disable_fast_switch |
755 | ret = sugov_kthread_create(sg_policy) |
756 | If ret Then Go to free_sg_policy |
759 | mutex_lock( & global_tunables_lock) |
761 | If sysfs interface *********************** Then |
762 | If WARN_ON(have_governor_per_policy()) Then |
764 | Go to stop_kthread |
766 | governor_data = sg_policy |
769 | gov_attr_set_get( & attr_set, & tunables_hook) |
770 | Go to out |
774 | If Not tunables Then |
776 | Go to stop_kthread |
781 | governor_data = sg_policy |
790 | out : |
791 | mutex_unlock( & global_tunables_lock) |
792 | Return 0 |
794 | fail : |
796 | governor_data = NULL |
799 | stop_kthread : |
801 | mutex_unlock( & global_tunables_lock) |
803 | free_sg_policy : |
806 | disable_fast_switch : |
810 | Return ret |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |