> Actually, it should not be exported at all. A function returning the num > banks is better instead.
Are all the places it is used in non-pre-emptible sections of code? Looping in the CMCI and #MC handlers should be fine. But do we need get_cpu()/put_cpu() in any places? -Tony