stop_this_cpu - redundant code?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi All:

 

This function  (stop_this_cpu) in /arch/mips/kernel/smp.c does a local_irq_enable() and the adjacent comment says that it’s because it may need to service _machine_restart IPI. Unfortunately, smp_call_function only sends IPIs to cores that are still online ( it uses the cpu_online_map U all_but_myself_map in smp_call_function_map()).

 

So the bottom-line is, should we still keep the local irqs enabled or is this code totally redundant? I have seen other similar functions in other archs where they actually disable the local irqs.

 

Cheers,

 

Ani

 


[Index of Archives]     [Linux MIPS Home]     [LKML Archive]     [Linux ARM Kernel]     [Linux ARM]     [Linux]     [Git]     [Yosemite News]     [Linux SCSI]     [Linux Hams]

  Powered by Linux