Repository navigation
Commit 398ca17
committed
hrtimer: Get rid of the resolution field in hrtimer_clock_base
The field has no value because all clock bases have the same
resolution. The resolution only changes when we switch to high
resolution timer mode. We can evaluate that from a single static
variable as well. In the !HIGHRES case its simply a constant.
Export the variable, so we can simplify the usage sites.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Reviewed-by: Preeti U Murthy <preeti@linux.vnet.ibm.com>
Acked-by: Peter Zijlstra <peterz@infradead.org>
Cc: Viresh Kumar <viresh.kumar@linaro.org>
Cc: Marcelo Tosatti <mtosatti@redhat.com>
Cc: Frederic Weisbecker <fweisbec@gmail.com>
Link: http://lkml.kernel.org/r/20150414203500.645454122@linutronix.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>1 parent d9f0acd commit 398ca17
3 files changed
Lines changed: 17 additions & 23 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
137 | 137 | | |
138 | 138 | | |
139 | 139 | | |
140 | | - | |
141 | 140 | | |
142 | 141 | | |
143 | 142 | | |
| |||
147 | 146 | | |
148 | 147 | | |
149 | 148 | | |
150 | | - | |
151 | 149 | | |
152 | 150 | | |
153 | 151 | | |
| |||
295 | 293 | | |
296 | 294 | | |
297 | 295 | | |
| 296 | + | |
| 297 | + | |
298 | 298 | | |
299 | 299 | | |
300 | 300 | | |
301 | 301 | | |
302 | 302 | | |
| 303 | + | |
| 304 | + | |
303 | 305 | | |
304 | 306 | | |
305 | 307 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | 74 | | |
76 | 75 | | |
77 | | - | |
78 | 76 | | |
79 | 77 | | |
80 | 78 | | |
81 | 79 | | |
82 | 80 | | |
83 | | - | |
84 | 81 | | |
85 | 82 | | |
86 | 83 | | |
87 | 84 | | |
88 | 85 | | |
89 | | - | |
90 | 86 | | |
91 | 87 | | |
92 | 88 | | |
93 | 89 | | |
94 | 90 | | |
95 | | - | |
96 | 91 | | |
97 | 92 | | |
98 | 93 | | |
| |||
478 | 473 | | |
479 | 474 | | |
480 | 475 | | |
| 476 | + | |
| 477 | + | |
481 | 478 | | |
482 | 479 | | |
483 | 480 | | |
| |||
660 | 657 | | |
661 | 658 | | |
662 | 659 | | |
663 | | - | |
| 660 | + | |
664 | 661 | | |
665 | 662 | | |
666 | 663 | | |
| |||
676 | 673 | | |
677 | 674 | | |
678 | 675 | | |
679 | | - | |
680 | | - | |
| 676 | + | |
681 | 677 | | |
682 | 678 | | |
683 | 679 | | |
| |||
820 | 816 | | |
821 | 817 | | |
822 | 818 | | |
823 | | - | |
824 | | - | |
| 819 | + | |
| 820 | + | |
825 | 821 | | |
826 | 822 | | |
827 | 823 | | |
| |||
963 | 959 | | |
964 | 960 | | |
965 | 961 | | |
966 | | - | |
| 962 | + | |
967 | 963 | | |
968 | 964 | | |
969 | 965 | | |
| |||
1193 | 1189 | | |
1194 | 1190 | | |
1195 | 1191 | | |
1196 | | - | |
1197 | | - | |
1198 | | - | |
1199 | | - | |
1200 | | - | |
1201 | | - | |
| 1192 | + | |
| 1193 | + | |
1202 | 1194 | | |
1203 | 1195 | | |
1204 | 1196 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
127 | 127 | | |
128 | 128 | | |
129 | 129 | | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
134 | 134 | | |
135 | 135 | | |
136 | 136 | | |
| |||
0 commit comments