Lines Matching defs:storm
37 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc);
40 * Previous CPU owning this bank had put it into storm mode,
41 * but the precise history of that storm is unknown. Assume
44 * the storm has ended.
46 storm->banks[bank].history = ~0ull;
47 storm->banks[bank].timestamp = jiffies;
55 void mce_set_storm_mode(bool storm)
57 __this_cpu_write(storm_desc.poll_mode, storm);
71 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc);
74 storm->banks[bank].in_storm_mode = true;
77 * If this is the first bank on this CPU to enter storm mode
80 if (++storm->stormy_bank_count == 1)
86 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc);
89 storm->banks[bank].history = 0;
90 storm->banks[bank].in_storm_mode = false;
92 /* If no banks left in storm mode, stop polling. */
93 if (!--storm->stormy_bank_count)
99 struct mca_storm_desc *storm = this_cpu_ptr(&storm_desc);
105 if (storm->banks[mce->bank].poll_only)
109 * When a bank is in storm mode it is polled once per second and
111 * If it is not in storm mode, then the bank is only checked when
116 if (!storm->banks[mce->bank].in_storm_mode) {
117 delta = now - storm->banks[mce->bank].timestamp;
123 history = storm->banks[mce->bank].history << shift;
125 storm->banks[mce->bank].timestamp = now;
131 storm->banks[mce->bank].history = history;
133 if (storm->banks[mce->bank].in_storm_mode) {
136 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm subsided\n", smp_processor_id(), mce->bank);
142 printk_deferred(KERN_NOTICE "CPU%d BANK%d CMCI storm detected\n", smp_processor_id(), mce->bank);