All of lore.kernel.org
 help / color / mirror / Atom feed
* stop_this_cpu - redundant code?
@ 2008-10-18  2:57 ` Anirban Sinha
  0 siblings, 0 replies; 6+ messages in thread
From: Anirban Sinha @ 2008-10-18  2:57 UTC (permalink / raw)
  To: linux-mips, Ralf Baechle

[-- Attachment #1: Type: text/plain, Size: 600 bytes --]

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

 


[-- Attachment #2: Type: text/html, Size: 2479 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2008-10-23 13:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-10-18  2:57 stop_this_cpu - redundant code? Anirban Sinha
2008-10-18  2:57 ` Anirban Sinha
2008-10-18 12:43 ` Ralf Baechle
2008-10-20 19:05   ` panic logic defeats arch dependent code Anirban Sinha
2008-10-20 19:05     ` Anirban Sinha
2008-10-23 13:07     ` Ralf Baechle

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.