[PATCH 2/2] x86, cpuid: allow cpuid_read() to schedule

2018-03-17 Thread Eric Dumazet
I noticed high latencies caused by a daemon periodically reading various MSR and cpuid on all cpus. KASAN kernels would see ~10ms latencies simply reading one cpuid. Even without KASAN, sending IPI to CPU in deep sleep state or blocking hard IRQ in a a long section, then waiting for the answer can

[PATCH 2/2] x86, cpuid: allow cpuid_read() to schedule

2018-03-17 Thread Eric Dumazet
I noticed high latencies caused by a daemon periodically reading various MSR and cpuid on all cpus. KASAN kernels would see ~10ms latencies simply reading one cpuid. Even without KASAN, sending IPI to CPU in deep sleep state or blocking hard IRQ in a a long section, then waiting for the answer can