xref: /OK3568_Linux_fs/kernel/Documentation/ABI/testing/sysfs-class-devfreq (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../
2*4882a593SmuzhiyunDate:		September 2011
3*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
4*4882a593SmuzhiyunDescription:
5*4882a593Smuzhiyun		Provide a place in sysfs for the devfreq objects.
6*4882a593Smuzhiyun		This allows accessing various devfreq specific variables.
7*4882a593Smuzhiyun		The name of devfreq object denoted as ... is same as the
8*4882a593Smuzhiyun		name of device using devfreq.
9*4882a593Smuzhiyun
10*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../name
11*4882a593SmuzhiyunDate:		November 2019
12*4882a593SmuzhiyunContact:	Chanwoo Choi <cw00.choi@samsung.com>
13*4882a593SmuzhiyunDescription:
14*4882a593Smuzhiyun		The /sys/class/devfreq/.../name shows the name of device
15*4882a593Smuzhiyun		of the corresponding devfreq object.
16*4882a593Smuzhiyun
17*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../governor
18*4882a593SmuzhiyunDate:		September 2011
19*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
20*4882a593SmuzhiyunDescription:
21*4882a593Smuzhiyun		The /sys/class/devfreq/.../governor show or set the name of the
22*4882a593Smuzhiyun		governor used by the corresponding devfreq object.
23*4882a593Smuzhiyun
24*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../cur_freq
25*4882a593SmuzhiyunDate:		September 2011
26*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
27*4882a593SmuzhiyunDescription:
28*4882a593Smuzhiyun		The /sys/class/devfreq/.../cur_freq shows the current
29*4882a593Smuzhiyun		frequency of the corresponding devfreq object. Same as
30*4882a593Smuzhiyun		target_freq when get_cur_freq() is not implemented by
31*4882a593Smuzhiyun		devfreq driver.
32*4882a593Smuzhiyun
33*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../target_freq
34*4882a593SmuzhiyunDate:		September 2012
35*4882a593SmuzhiyunContact:	Rajagopal Venkat <rajagopal.venkat@linaro.org>
36*4882a593SmuzhiyunDescription:
37*4882a593Smuzhiyun		The /sys/class/devfreq/.../target_freq shows the next governor
38*4882a593Smuzhiyun		predicted target frequency of the corresponding devfreq object.
39*4882a593Smuzhiyun
40*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../polling_interval
41*4882a593SmuzhiyunDate:		September 2011
42*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
43*4882a593SmuzhiyunDescription:
44*4882a593Smuzhiyun		The /sys/class/devfreq/.../polling_interval shows and sets
45*4882a593Smuzhiyun		the requested polling interval of the corresponding devfreq
46*4882a593Smuzhiyun		object. The values are represented in ms. If the value is
47*4882a593Smuzhiyun		less than 1 jiffy, it is considered to be 0, which means
48*4882a593Smuzhiyun		no polling. This value is meaningless if the governor is
49*4882a593Smuzhiyun		not polling; thus. If the governor is not using
50*4882a593Smuzhiyun		devfreq-provided central polling
51*4882a593Smuzhiyun		(/sys/class/devfreq/.../central_polling is 0), this value
52*4882a593Smuzhiyun		may be useless.
53*4882a593Smuzhiyun
54*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../trans_stat
55*4882a593SmuzhiyunDate:		October 2012
56*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
57*4882a593SmuzhiyunDescription:
58*4882a593Smuzhiyun		This ABI shows or clears the statistics of devfreq behavior
59*4882a593Smuzhiyun		on a specific device. It shows the time spent in each state
60*4882a593Smuzhiyun		and the number of transitions between states.
61*4882a593Smuzhiyun		In order to activate this ABI, the devfreq target device
62*4882a593Smuzhiyun		driver should provide the list of available frequencies
63*4882a593Smuzhiyun		with its profile. If need to reset the statistics of devfreq
64*4882a593Smuzhiyun		behavior on a specific device, enter 0(zero) to 'trans_stat'
65*4882a593Smuzhiyun		as following::
66*4882a593Smuzhiyun
67*4882a593Smuzhiyun			echo 0 > /sys/class/devfreq/.../trans_stat
68*4882a593Smuzhiyun
69*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../userspace/set_freq
70*4882a593SmuzhiyunDate:		September 2011
71*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
72*4882a593SmuzhiyunDescription:
73*4882a593Smuzhiyun		The /sys/class/devfreq/.../userspace/set_freq shows and
74*4882a593Smuzhiyun		sets the requested frequency for the devfreq object if
75*4882a593Smuzhiyun		userspace governor is in effect.
76*4882a593Smuzhiyun
77*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../available_frequencies
78*4882a593SmuzhiyunDate:		October 2012
79*4882a593SmuzhiyunContact:	Nishanth Menon <nm@ti.com>
80*4882a593SmuzhiyunDescription:
81*4882a593Smuzhiyun		The /sys/class/devfreq/.../available_frequencies shows
82*4882a593Smuzhiyun		the available frequencies of the corresponding devfreq object.
83*4882a593Smuzhiyun		This is a snapshot of available frequencies and not limited
84*4882a593Smuzhiyun		by the min/max frequency restrictions.
85*4882a593Smuzhiyun
86*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../available_governors
87*4882a593SmuzhiyunDate:		October 2012
88*4882a593SmuzhiyunContact:	Nishanth Menon <nm@ti.com>
89*4882a593SmuzhiyunDescription:
90*4882a593Smuzhiyun		The /sys/class/devfreq/.../available_governors shows
91*4882a593Smuzhiyun		currently available governors in the system.
92*4882a593Smuzhiyun
93*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../min_freq
94*4882a593SmuzhiyunDate:		January 2013
95*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
96*4882a593SmuzhiyunDescription:
97*4882a593Smuzhiyun		The /sys/class/devfreq/.../min_freq shows and stores
98*4882a593Smuzhiyun		the minimum frequency requested by users. It is 0 if
99*4882a593Smuzhiyun		the user does not care. min_freq overrides the
100*4882a593Smuzhiyun		frequency requested by governors.
101*4882a593Smuzhiyun
102*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../max_freq
103*4882a593SmuzhiyunDate:		January 2013
104*4882a593SmuzhiyunContact:	MyungJoo Ham <myungjoo.ham@samsung.com>
105*4882a593SmuzhiyunDescription:
106*4882a593Smuzhiyun		The /sys/class/devfreq/.../max_freq shows and stores
107*4882a593Smuzhiyun		the maximum frequency requested by users. It is 0 if
108*4882a593Smuzhiyun		the user does not care. max_freq overrides the
109*4882a593Smuzhiyun		frequency requested by governors and min_freq.
110*4882a593Smuzhiyun		The max_freq overrides min_freq because max_freq may be
111*4882a593Smuzhiyun		used to throttle devices to avoid overheating.
112*4882a593Smuzhiyun
113*4882a593SmuzhiyunWhat:		/sys/class/devfreq/.../timer
114*4882a593SmuzhiyunDate:		July 2020
115*4882a593SmuzhiyunContact:	Chanwoo Choi <cw00.choi@samsung.com>
116*4882a593SmuzhiyunDescription:
117*4882a593Smuzhiyun		This ABI shows and stores the kind of work timer by users.
118*4882a593Smuzhiyun		This work timer is used by devfreq workqueue in order to
119*4882a593Smuzhiyun		monitor the device status such as utilization. The user
120*4882a593Smuzhiyun		can change the work timer on runtime according to their demand
121*4882a593Smuzhiyun		as following::
122*4882a593Smuzhiyun
123*4882a593Smuzhiyun			echo deferrable > /sys/class/devfreq/.../timer
124*4882a593Smuzhiyun			echo delayed > /sys/class/devfreq/.../timer
125