Lines Matching +full:out +full:- +full:of +full:- +full:window
1 // SPDX-License-Identifier: GPL-2.0
46 * dynamic adjustment to minimize # of interrupts */
47 /* configurable values for step size and how much to expand the window when
48 * we get an interrupt. These are based on the limit that was out of range */
49 #define step_size 2 /* step size when temp goes out of range */
50 #define window_expand 1 /* expand the window by this much */
51 /* configurable values for shrinking the window */
52 #define shrink_timer 2000 /* period between shrinking the window */
53 #define min_window 2 /* minimum window size, degrees C */
71 /* if both thresholds are crossed, the step_sizes cancel out in TAUupdate()
72 * and the window winds up getting expanded twice. */ in TAUupdate()
78 tau[cpu].low -= step_size; in TAUupdate()
79 tau[cpu].high -= (step_size - window_expand); in TAUupdate()
88 if (tau[cpu].high <= 127 - step_size) { in TAUupdate()
89 tau[cpu].low += (step_size - window_expand); in TAUupdate()
99 * TAU interrupts - called when we have a thermal assist unit interrupt
127 size = tau[cpu].high - tau[cpu].low; in tau_timeout()
129 /* do an exponential shrink of half the amount currently over size */ in tau_timeout()
130 shrink = (2 + size - min_window) / 4; in tau_timeout()
133 tau[cpu].high -= shrink; in tau_timeout()
137 if ((tau[cpu].high - tau[cpu].low) != min_window){ in tau_timeout()
182 * window */ in TAU_init_smp()
192 * all have it --BenH in TAU_init()
201 !strcmp(cur_cpu_spec->platform, "ppc750"); in TAU_init()
205 return -ENOMEM; in TAU_init()