Lines Matching +full:high +full:- +full:threshold
1 // SPDX-License-Identifier: GPL-2.0
39 unsigned char high; member
59 /* setup THRM1, threshold, valid bit, interrupt when below threshold */ in set_thresholds()
62 /* setup THRM2, threshold, valid bit, interrupt when above threshold */ in set_thresholds()
63 mtspr(SPRN_THRM2, THRM1_THRES(tau[cpu].high) | THRM1_V | maybe_tie); in set_thresholds()
78 tau[cpu].low -= step_size; in TAUupdate()
79 tau[cpu].high -= (step_size - window_expand); in TAUupdate()
82 pr_debug("%s: low threshold crossed\n", __func__); in TAUupdate()
88 if (tau[cpu].high <= 127 - step_size) { in TAUupdate()
89 tau[cpu].low += (step_size - window_expand); in TAUupdate()
90 tau[cpu].high += step_size; in TAUupdate()
93 pr_debug("%s: high threshold crossed\n", __func__); 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()
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()
184 tau[cpu].high = 120; 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()
226 return ((tau[cpu].high << 16) | tau[cpu].low); in cpu_temp_both()
231 return ((tau[cpu].high + tau[cpu].low) / 2); in cpu_temp()