Re: A question of sleeping with interrupts are disabled in start_kernel()

2018-04-06 Thread Thomas Gleixner
On Fri, 6 Apr 2018, Jia-Ju Bai wrote: > Hello, > > I have a question of the call path init/main.c: > init/main.c: start_kernel() -> > kernel/events/core.c: perf_pmu_register() -> > kernel/events/core.c: perf_event_init() -> > kernel/events/core.c: pmu_dev_alloc() > > In this call path, start_ker

A question of sleeping with interrupts are disabled in start_kernel()

2018-04-06 Thread Jia-Ju Bai
Hello, I have a question of the call path init/main.c: init/main.c: start_kernel() -> kernel/events/core.c: perf_pmu_register() -> kernel/events/core.c: perf_event_init() -> kernel/events/core.c: pmu_dev_alloc() In this call path, start_kernel() calls local_irq_disable() to disable the interrup