18c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../ 28c2ecf20Sopenharmony_ciDate: September 2011 38c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 48c2ecf20Sopenharmony_ciDescription: 58c2ecf20Sopenharmony_ci Provide a place in sysfs for the devfreq objects. 68c2ecf20Sopenharmony_ci This allows accessing various devfreq specific variables. 78c2ecf20Sopenharmony_ci The name of devfreq object denoted as ... is same as the 88c2ecf20Sopenharmony_ci name of device using devfreq. 98c2ecf20Sopenharmony_ci 108c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../name 118c2ecf20Sopenharmony_ciDate: November 2019 128c2ecf20Sopenharmony_ciContact: Chanwoo Choi <cw00.choi@samsung.com> 138c2ecf20Sopenharmony_ciDescription: 148c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../name shows the name of device 158c2ecf20Sopenharmony_ci of the corresponding devfreq object. 168c2ecf20Sopenharmony_ci 178c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../governor 188c2ecf20Sopenharmony_ciDate: September 2011 198c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 208c2ecf20Sopenharmony_ciDescription: 218c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../governor show or set the name of the 228c2ecf20Sopenharmony_ci governor used by the corresponding devfreq object. 238c2ecf20Sopenharmony_ci 248c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../cur_freq 258c2ecf20Sopenharmony_ciDate: September 2011 268c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 278c2ecf20Sopenharmony_ciDescription: 288c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../cur_freq shows the current 298c2ecf20Sopenharmony_ci frequency of the corresponding devfreq object. Same as 308c2ecf20Sopenharmony_ci target_freq when get_cur_freq() is not implemented by 318c2ecf20Sopenharmony_ci devfreq driver. 328c2ecf20Sopenharmony_ci 338c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../target_freq 348c2ecf20Sopenharmony_ciDate: September 2012 358c2ecf20Sopenharmony_ciContact: Rajagopal Venkat <rajagopal.venkat@linaro.org> 368c2ecf20Sopenharmony_ciDescription: 378c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../target_freq shows the next governor 388c2ecf20Sopenharmony_ci predicted target frequency of the corresponding devfreq object. 398c2ecf20Sopenharmony_ci 408c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../polling_interval 418c2ecf20Sopenharmony_ciDate: September 2011 428c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 438c2ecf20Sopenharmony_ciDescription: 448c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../polling_interval shows and sets 458c2ecf20Sopenharmony_ci the requested polling interval of the corresponding devfreq 468c2ecf20Sopenharmony_ci object. The values are represented in ms. If the value is 478c2ecf20Sopenharmony_ci less than 1 jiffy, it is considered to be 0, which means 488c2ecf20Sopenharmony_ci no polling. This value is meaningless if the governor is 498c2ecf20Sopenharmony_ci not polling; thus. If the governor is not using 508c2ecf20Sopenharmony_ci devfreq-provided central polling 518c2ecf20Sopenharmony_ci (/sys/class/devfreq/.../central_polling is 0), this value 528c2ecf20Sopenharmony_ci may be useless. 538c2ecf20Sopenharmony_ci 548c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../trans_stat 558c2ecf20Sopenharmony_ciDate: October 2012 568c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 578c2ecf20Sopenharmony_ciDescription: 588c2ecf20Sopenharmony_ci This ABI shows or clears the statistics of devfreq behavior 598c2ecf20Sopenharmony_ci on a specific device. It shows the time spent in each state 608c2ecf20Sopenharmony_ci and the number of transitions between states. 618c2ecf20Sopenharmony_ci In order to activate this ABI, the devfreq target device 628c2ecf20Sopenharmony_ci driver should provide the list of available frequencies 638c2ecf20Sopenharmony_ci with its profile. If need to reset the statistics of devfreq 648c2ecf20Sopenharmony_ci behavior on a specific device, enter 0(zero) to 'trans_stat' 658c2ecf20Sopenharmony_ci as following:: 668c2ecf20Sopenharmony_ci 678c2ecf20Sopenharmony_ci echo 0 > /sys/class/devfreq/.../trans_stat 688c2ecf20Sopenharmony_ci 698c2ecf20Sopenharmony_ci If the transition table is bigger than PAGE_SIZE, reading 708c2ecf20Sopenharmony_ci this will return an -EFBIG error. 718c2ecf20Sopenharmony_ci 728c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../userspace/set_freq 738c2ecf20Sopenharmony_ciDate: September 2011 748c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 758c2ecf20Sopenharmony_ciDescription: 768c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../userspace/set_freq shows and 778c2ecf20Sopenharmony_ci sets the requested frequency for the devfreq object if 788c2ecf20Sopenharmony_ci userspace governor is in effect. 798c2ecf20Sopenharmony_ci 808c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../available_frequencies 818c2ecf20Sopenharmony_ciDate: October 2012 828c2ecf20Sopenharmony_ciContact: Nishanth Menon <nm@ti.com> 838c2ecf20Sopenharmony_ciDescription: 848c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../available_frequencies shows 858c2ecf20Sopenharmony_ci the available frequencies of the corresponding devfreq object. 868c2ecf20Sopenharmony_ci This is a snapshot of available frequencies and not limited 878c2ecf20Sopenharmony_ci by the min/max frequency restrictions. 888c2ecf20Sopenharmony_ci 898c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../available_governors 908c2ecf20Sopenharmony_ciDate: October 2012 918c2ecf20Sopenharmony_ciContact: Nishanth Menon <nm@ti.com> 928c2ecf20Sopenharmony_ciDescription: 938c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../available_governors shows 948c2ecf20Sopenharmony_ci currently available governors in the system. 958c2ecf20Sopenharmony_ci 968c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../min_freq 978c2ecf20Sopenharmony_ciDate: January 2013 988c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 998c2ecf20Sopenharmony_ciDescription: 1008c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../min_freq shows and stores 1018c2ecf20Sopenharmony_ci the minimum frequency requested by users. It is 0 if 1028c2ecf20Sopenharmony_ci the user does not care. min_freq overrides the 1038c2ecf20Sopenharmony_ci frequency requested by governors. 1048c2ecf20Sopenharmony_ci 1058c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../max_freq 1068c2ecf20Sopenharmony_ciDate: January 2013 1078c2ecf20Sopenharmony_ciContact: MyungJoo Ham <myungjoo.ham@samsung.com> 1088c2ecf20Sopenharmony_ciDescription: 1098c2ecf20Sopenharmony_ci The /sys/class/devfreq/.../max_freq shows and stores 1108c2ecf20Sopenharmony_ci the maximum frequency requested by users. It is 0 if 1118c2ecf20Sopenharmony_ci the user does not care. max_freq overrides the 1128c2ecf20Sopenharmony_ci frequency requested by governors and min_freq. 1138c2ecf20Sopenharmony_ci The max_freq overrides min_freq because max_freq may be 1148c2ecf20Sopenharmony_ci used to throttle devices to avoid overheating. 1158c2ecf20Sopenharmony_ci 1168c2ecf20Sopenharmony_ciWhat: /sys/class/devfreq/.../timer 1178c2ecf20Sopenharmony_ciDate: July 2020 1188c2ecf20Sopenharmony_ciContact: Chanwoo Choi <cw00.choi@samsung.com> 1198c2ecf20Sopenharmony_ciDescription: 1208c2ecf20Sopenharmony_ci This ABI shows and stores the kind of work timer by users. 1218c2ecf20Sopenharmony_ci This work timer is used by devfreq workqueue in order to 1228c2ecf20Sopenharmony_ci monitor the device status such as utilization. The user 1238c2ecf20Sopenharmony_ci can change the work timer on runtime according to their demand 1248c2ecf20Sopenharmony_ci as following:: 1258c2ecf20Sopenharmony_ci 1268c2ecf20Sopenharmony_ci echo deferrable > /sys/class/devfreq/.../timer 1278c2ecf20Sopenharmony_ci echo delayed > /sys/class/devfreq/.../timer 128