Lines Matching refs:banks
27 * Also supports reliable discovery of shared banks.
36 * some MCA banks are shared across cpus. When a cpu is offlined, cmci_clear()
37 * disables CMCI on all banks owned by the cpu and clears this bitfield. At
39 * taking ownership of some of the shared MCA banks that were previously
83 static int cmci_supported(int *banks)
102 *banks = min_t(unsigned, MAX_NR_BANKS, cap & 0xff);
270 * Enable CMCI (Corrected Machine Check Interrupt) for available MCE banks
272 * banks.
274 static void cmci_discover(int banks)
282 for (i = 0; i < banks; i++) {
289 /* Skip banks in firmware first mode */
324 * We are able to set thresholds for some banks that
339 "bios_cmci_threshold: Some banks do not have valid thresholds set\n");
347 * all the CMCI owned banks.
352 int banks;
354 if (!mce_available(raw_cpu_ptr(&cpu_info)) || !cmci_supported(&banks))
376 * Disable CMCI on this CPU for all banks it owns when it goes down.
377 * This allows other CPUs to claim the banks on rediscovery.
383 int banks;
385 if (!cmci_supported(&banks))
388 for (i = 0; i < banks; i++)
395 int banks;
397 /* Recheck banks in case CPUs don't all have the same */
398 if (cmci_supported(&banks))
399 cmci_discover(banks);
405 int banks;
407 if (!cmci_supported(&banks))
418 int banks;
419 if (cmci_supported(&banks))
420 cmci_discover(banks);
425 int banks;
428 if (!cmci_supported(&banks))
446 int banks;
448 if (!cmci_supported(&banks)) {
454 cmci_discover(banks);
458 * check for the banks later for CPU #0 just to make sure