Lines Matching +full:delta +full:- +full:x +full:- +full:threshold
1 // SPDX-License-Identifier: GPL-2.0
3 * Common corrected MCE threshold handler code:
18 pr_err("Unexpected threshold interrupt at vector %x\n", in default_threshold_interrupt()
46 storm->banks[bank].history = ~0ull; in mce_inherit_storm()
47 storm->banks[bank].timestamp = jiffies; in mce_inherit_storm()
74 storm->banks[bank].in_storm_mode = true; in cmci_storm_begin()
80 if (++storm->stormy_bank_count == 1) in cmci_storm_begin()
89 storm->banks[bank].history = 0; in cmci_storm_end()
90 storm->banks[bank].in_storm_mode = false; in cmci_storm_end()
100 unsigned long now = jiffies, delta; in mce_track_storm() local
105 if (storm->banks[mce->bank].poll_only) in mce_track_storm()
116 if (!storm->banks[mce->bank].in_storm_mode) { in mce_track_storm()
117 delta = now - storm->banks[mce->bank].timestamp; in mce_track_storm()
118 shift = (delta + HZ) / HZ; in mce_track_storm()
123 history = storm->banks[mce->bank].history << shift; in mce_track_storm()
125 storm->banks[mce->bank].timestamp = now; in mce_track_storm()
128 if ((mce->status & MCI_STATUS_VAL) && mce_is_correctable(mce)) in mce_track_storm()
131 storm->banks[mce->bank].history = history; in mce_track_storm()
133 if (storm->banks[mce->bank].in_storm_mode) { in mce_track_storm()
136 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm subsided\n", smp_processor_id(), mce->bank); in mce_track_storm()
137 mce_handle_storm(mce->bank, false); in mce_track_storm()
138 cmci_storm_end(mce->bank); in mce_track_storm()
142 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm detected\n", smp_processor_id(), mce->bank); in mce_track_storm()
143 mce_handle_storm(mce->bank, true); in mce_track_storm()
144 cmci_storm_begin(mce->bank); in mce_track_storm()