if curr_cpustat_procs last_cpustat_procs printk curr_cpustat_procs llu

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
if (curr_cpustat_procs != last_cpustat_procs) {
printk("curr_cpustat_procs: %llu, last_cpustat_procs: %llu\n", (unsigned long long)curr_cpustat_procs, (unsigned long long)last_cpustat_procs);
sleep_idle_time = jiffies + pm_autosuspend_timeout;
}
#ifdef CONFIG_PM_AUTOSUSPEND_WITH_TIMERS
if (time_before(get_next_timer_interrupt(jiffies), sleep_idle_time)) {
printk("timer interrupt: %lu\n", get_next_timer_interrupt(jiffies));
sleep_idle_time = get_next_timer_interrupt(jiffies) + pm_autosuspend_timeout;
}
#endif
printk("jiffies: %lu sleep_idle_time: %lu\n", jiffies, sleep_idle_time);
<4>[ 1820.170000] jiffies: 182017 sleep_idle_time: 182113
<4>[ 1820.190000] jiffies: 182019 sleep_idle_time: 182113
<4>[ 1820.210000] jiffies: 182021 sleep_idle_time: 182113
<4>[ 1820.230000] jiffies: 182023 sleep_idle_time: 182113
<4>[ 1820.250000] jiffies: 182025 sleep_idle_time: 182113
<4>[ 1820.270000] jiffies: 182027 sleep_idle_time: 182113
<4>[ 1820.290000] jiffies: 182029 sleep_idle_time: 182113
<4>[ 1820.310000] jiffies: 182031 sleep_idle_time: 182113
<4>[ 1820.330000] jiffies: 182033 sleep_idle_time: 182113
<4>[ 1820.350000] jiffies: 182035 sleep_idle_time: 182113
<4>[ 1820.370000] jiffies: 182037 sleep_idle_time: 182113
<4>[ 1820.390000] jiffies: 182039 sleep_idle_time: 182113
<4>[ 1820.410000] jiffies: 182041 sleep_idle_time: 182113
<4>[ 1820.430000] jiffies: 182043 sleep_idle_time: 182113
<4>[ 1820.450000] jiffies: 182045 sleep_idle_time: 182113
<4>[ 1820.470000] jiffies: 182047 sleep_idle_time: 182113
<4>[ 1820.490000] jiffies: 182049 sleep_idle_time: 182113
<4>[ 1820.500000] timer interrupt: 182051
<4>[ 1820.510000] jiffies: 182051 sleep_idle_time: 182271
<4>[ 1820.530000] timer interrupt: 182054
<4>[ 1820.530000] jiffies: 182053 sleep_idle_time: 182154
<4>[ 1820.550000] timer interrupt: 182056
<4>[ 1820.560000] jiffies: 182056 sleep_idle_time: 182271
<4>[ 1820.570000] timer interrupt: 182058
<4>[ 1820.580000] jiffies: 182058 sleep_idle_time: 182271
<4>[ 1820.600000] timer interrupt: 182061
<4>[ 1820.610000] jiffies: 182061 sleep_idle_time: 182271
<4>[ 1820.620000] timer interrupt: 182063
<4>[ 1820.630000] jiffies: 182063 sleep_idle_time: 182271
<4>[ 1820.650000] timer interrupt: 182066
<4>[ 1820.650000] jiffies: 182065 sleep_idle_time: 182166
<4>[ 1820.670000] timer interrupt: 182068
<4>[ 1820.680000] jiffies: 182068 sleep_idle_time: 182271
<4>[ 1820.690000] timer interrupt: 182070
<4>[ 1820.700000] jiffies: 182070 sleep_idle_time: 182271
<4>[ 1820.720000] timer interrupt: 182073
<4>[ 1820.730000] jiffies: 182073 sleep_idle_time: 182271
<4>[ 1820.740000] timer interrupt: 182075
<4>[ 1820.750000] jiffies: 182075 sleep_idle_time: 182271
<4>[ 1820.770000] timer interrupt: 182078
<4>[ 1820.770000] jiffies: 182077 sleep_idle_time: 182178
<4>[ 1820.790000] timer interrupt: 182080
<4>[ 1820.800000] jiffies: 182080 sleep_idle_time: 182271
<4>[ 1820.810000] timer interrupt: 182082
<4>[ 1820.820000] jiffies: 182082 sleep_idle_time: 182271
<4>[ 1820.840000] timer interrupt: 182085
<4>[ 1820.850000] jiffies: 182085 sleep_idle_time: 182271
<4>[ 1820.860000] timer interrupt: 182087
<4>[ 1820.870000] jiffies: 182087 sleep_idle_time: 182271
<4>[ 1820.890000] timer interrupt: 182090
<4>[ 1820.890000] jiffies: 182089 sleep_idle_time: 182190
<4>[ 1820.900000] timer interrupt: 182091
<4>[ 1820.910000] jiffies: 182091 sleep_idle_time: 182271
<4>[ 1820.920000] timer interrupt: 182093
<4>[ 1820.930000] jiffies: 182093 sleep_idle_time: 182271
<4>[ 1820.950000] timer interrupt: 182096
<4>[ 1820.960000] jiffies: 182096 sleep_idle_time: 182271
<4>[ 1820.970000] timer interrupt: 182098
<4>[ 1820.980000] jiffies: 182098 sleep_idle_time: 182271
<4>[ 1821.000000] timer interrupt: 182101
<4>[ 1821.000000] jiffies: 182100 sleep_idle_time: 182201
<4>[ 1821.010000] timer interrupt: 182102
<4>[ 1821.020000] jiffies: 182102 sleep_idle_time: 182271
<4>[ 1821.030000] timer interrupt: 182104
<4>[ 1821.040000] jiffies: 182104 sleep_idle_time: 182271
<4>[ 1821.060000] timer interrupt: 182107
<4>[ 1821.070000] jiffies: 182107 sleep_idle_time: 182271
<4>[ 1821.080000] timer interrupt: 182109
<4>[ 1821.090000] jiffies: 182109 sleep_idle_time: 182271
<4>[ 1821.110000] timer interrupt: 182112
<4>[ 1821.110000] jiffies: 182111 sleep_idle_time: 182212
<4>[ 1821.120000] timer interrupt: 182113
<4>[ 1821.130000] jiffies: 182113 sleep_idle_time: 182271
<4>[ 1821.140000] timer interrupt: 182115
<4>[ 1821.150000] jiffies: 182115 sleep_idle_time: 182271
<4>[ 1821.170000] timer interrupt: 182118
<4>[ 1821.180000] jiffies: 182118 sleep_idle_time: 182271
<4>[ 1821.190000] timer interrupt: 182120
<4>[ 1821.200000] jiffies: 182120 sleep_idle_time: 182271
<4>[ 1821.220000] timer interrupt: 182123
<4>[ 1821.230000] jiffies: 182123 sleep_idle_time: 182271
<4>[ 1821.240000] timer interrupt: 182125
<4>[ 1821.250000] jiffies: 182125 sleep_idle_time: 182271
<4>[ 1821.270000] timer interrupt: 182128
<4>[ 1821.270000] jiffies: 182127 sleep_idle_time: 182228
<4>[ 1821.290000] timer interrupt: 182130
<4>[ 1821.300000] jiffies: 182130 sleep_idle_time: 182271
<4>[ 1821.310000] timer interrupt: 182132
<4>[ 1821.320000] jiffies: 182132 sleep_idle_time: 182271
<4>[ 1821.340000] timer interrupt: 182135
<4>[ 1821.350000] jiffies: 182135 sleep_idle_time: 182271
<4>[ 1821.360000] timer interrupt: 182137
<4>[ 1821.370000] jiffies: 182137 sleep_idle_time: 182271
<4>[ 1821.390000] timer interrupt: 182140
<4>[ 1821.390000] jiffies: 182139 sleep_idle_time: 182240
<4>[ 1821.410000] timer interrupt: 182142
<4>[ 1821.420000] jiffies: 182142 sleep_idle_time: 182271
<4>[ 1821.430000] timer interrupt: 182144
<4>[ 1821.440000] jiffies: 182144 sleep_idle_time: 182271
<4>[ 1821.460000] timer interrupt: 182147
<4>[ 1821.470000] jiffies: 182147 sleep_idle_time: 182271
<4>[ 1821.480000] timer interrupt: 182149
<4>[ 1821.490000] jiffies: 182149 sleep_idle_time: 182271
<4>[ 1821.510000] timer interrupt: 182152
<4>[ 1821.510000] jiffies: 182151 sleep_idle_time: 182252
<4>[ 1821.530000] timer interrupt: 182154
<4>[ 1821.540000] jiffies: 182154 sleep_idle_time: 182271
<4>[ 1821.550000] timer interrupt: 182156
<4>[ 1821.560000] jiffies: 182156 sleep_idle_time: 182271
<4>[ 1821.580000] timer interrupt: 182159
<4>[ 1821.590000] jiffies: 182159 sleep_idle_time: 182271
<4>[ 1821.600000] timer interrupt: 182161
<4>[ 1821.610000] jiffies: 182161 sleep_idle_time: 182271
<4>[ 1821.630000] timer interrupt: 182164
<4>[ 1821.630000] jiffies: 182163 sleep_idle_time: 182264
<4>[ 1821.640000] timer interrupt: 182165
<4>[ 1821.650000] jiffies: 182165 sleep_idle_time: 182271
<4>[ 1821.660000] timer interrupt: 182167
<4>[ 1821.670000] jiffies: 182167 sleep_idle_time: 182271
<4>[ 1821.690000] timer interrupt: 182170
<4>[ 1821.700000] jiffies: 182170 sleep_idle_time: 182271
<4>[ 1821.710000] timer interrupt: 182172
<4>[ 1821.720000] jiffies: 182172 sleep_idle_time: 182400
<4>[ 1821.740000] timer interrupt: 182175
<4>[ 1821.740000] jiffies: 182174 sleep_idle_time: 182275
<4>[ 1821.750000] timer interrupt: 182176
<4>[ 1821.760000] jiffies: 182176 sleep_idle_time: 182400
<4>[ 1821.770000] timer interrupt: 182178
<4>[ 1821.780000] jiffies: 182178 sleep_idle_time: 182400
<4>[ 1821.800000] timer interrupt: 182181
<4>[ 1821.810000] jiffies: 182181 sleep_idle_time: 182400
<4>[ 1821.820000] timer interrupt: 182183
<4>[ 1821.830000] jiffies: 182183 sleep_idle_time: 182400
<4>[ 1821.850000] timer interrupt: 182186
<4>[ 1821.850000] jiffies: 182185 sleep_idle_time: 182286
<4>[ 1821.860000] timer interrupt: 182187
<4>[ 1821.870000] jiffies: 182187 sleep_idle_time: 182400
<4>[ 1821.880000] timer interrupt: 182189
<4>[ 1821.890000] jiffies: 182189 sleep_idle_time: 182400
<4>[ 1821.910000] timer interrupt: 182192
<4>[ 1821.920000] jiffies: 182192 sleep_idle_time: 182400
<4>[ 1821.930000] timer interrupt: 182194
<4>[ 1821.940000] jiffies: 182194 sleep_idle_time: 182400
<4>[ 1821.960000] timer interrupt: 182197
<4>[ 1821.970000] jiffies: 182197 sleep_idle_time: 182400
<4>[ 1821.980000] timer interrupt: 182199
<4>[ 1821.990000] jiffies: 182199 sleep_idle_time: 182400
<4>[ 1822.010000] timer interrupt: 182202
<4>[ 1822.010000] jiffies: 182201 sleep_idle_time: 182302
<4>[ 1822.030000] timer interrupt: 182204
<4>[ 1822.040000] jiffies: 182204 sleep_idle_time: 182400
<4>[ 1822.050000] timer interrupt: 182206
<4>[ 1822.060000] jiffies: 182206 sleep_idle_time: 182400
<4>[ 1822.080000] timer interrupt: 182209
<4>[ 1822.090000] jiffies: 182209 sleep_idle_time: 182400
<4>[ 1822.100000] timer interrupt: 182211
<4>[ 1822.110000] jiffies: 182211 sleep_idle_time: 182400
<4>[ 1822.130000] timer interrupt: 182214
<4>[ 1822.130000] jiffies: 182213 sleep_idle_time: 182314
<4>[ 1822.150000] timer interrupt: 182216
<4>[ 1822.160000] jiffies: 182216 sleep_idle_time: 182400
<4>[ 1822.170000] timer interrupt: 182218
<4>[ 1822.180000] jiffies: 182218 sleep_idle_time: 182400
<4>[ 1822.200000] timer interrupt: 182221
<4>[ 1822.210000] jiffies: 182221 sleep_idle_time: 182400
<4>[ 1822.220000] timer interrupt: 182223
<4>[ 1822.230000] jiffies: 182223 sleep_idle_time: 182400
<4>[ 1822.250000] timer interrupt: 182226
<4>[ 1822.250000] jiffies: 182225 sleep_idle_time: 182326
<4>[ 1822.270000] timer interrupt: 182228
<4>[ 1822.280000] jiffies: 182228 sleep_idle_time: 182400
<4>[ 1822.290000] timer interrupt: 182230
<4>[ 1822.300000] jiffies: 182230 sleep_idle_time: 182400
<4>[ 1822.320000] timer interrupt: 182233
<4>[ 1822.330000] jiffies: 182233 sleep_idle_time: 182400
<4>[ 1822.340000] timer interrupt: 182235
<4>[ 1822.350000] jiffies: 182235 sleep_idle_time: 182400
<4>[ 1822.370000] timer interrupt: 182238
<4>[ 1822.370000] jiffies: 182237 sleep_idle_time: 182338
<4>[ 1822.380000] timer interrupt: 182239
<4>[ 1822.390000] jiffies: 182239 sleep_idle_time: 182400
<4>[ 1822.400000] timer interrupt: 182241
<4>[ 1822.410000] jiffies: 182241 sleep_idle_time: 182400
<4>[ 1822.430000] timer interrupt: 182244
<4>[ 1822.440000] jiffies: 182244 sleep_idle_time: 182400
<4>[ 1822.450000] timer interrupt: 182246
<4>[ 1822.460000] jiffies: 182246 sleep_idle_time: 182400
<4>[ 1822.480000] timer interrupt: 182249
<4>[ 1822.480000] jiffies: 182248 sleep_idle_time: 182349
<4>[ 1822.490000] timer interrupt: 182250
<4>[ 1822.500000] jiffies: 182250 sleep_idle_time: 182400
<4>[ 1822.510000] timer interrupt: 182252
<4>[ 1822.520000] jiffies: 182252 sleep_idle_time: 182400
<4>[ 1822.540000] timer interrupt: 182255
<4>[ 1822.550000] jiffies: 182255 sleep_idle_time: 182400
<4>[ 1822.560000] timer interrupt: 182257
<4>[ 1822.570000] jiffies: 182257 sleep_idle_time: 182400
<4>[ 1822.590000] timer interrupt: 182260
<4>[ 1822.590000] jiffies: 182259 sleep_idle_time: 182360
<4>[ 1822.600000] timer interrupt: 182261
<4>[ 1822.610000] jiffies: 182261 sleep_idle_time: 182400
<4>[ 1822.620000] timer interrupt: 182263
<4>[ 1822.630000] jiffies: 182263 sleep_idle_time: 182400
<4>[ 1822.650000] timer interrupt: 182266
<4>[ 1822.660000] jiffies: 182266 sleep_idle_time: 182400
<4>[ 1822.670000] timer interrupt: 182268
<4>[ 1822.680000] jiffies: 182268 sleep_idle_time: 182400
<4>[ 1822.700000] timer interrupt: 182271
<4>[ 1822.710000] jiffies: 182271 sleep_idle_time: 182400
<4>[ 1822.760000] curr_cpustat_procs: 30547, last_cpustat_procs: 30543
<4>[ 1822.770000] timer interrupt: 182282
<4>[ 1822.780000] jiffies: 182278 sleep_idle_time: 182382
<4>[ 1822.790000] timer interrupt: 182280
<4>[ 1822.800000] jiffies: 182280 sleep_idle_time: 182382