* In SMP system, is there any api to disable IRQ for all CPUs?
@ 2015-10-01 15:49 loody
2015-10-02 2:01 ` Rik van Riel
0 siblings, 1 reply; 2+ messages in thread
From: loody @ 2015-10-01 15:49 UTC (permalink / raw)
To: kernelnewbies
hi all:
is there any kernel API can let IRQ disable for all CPU in SMP system
for a while?
I just need it for a experiment on my module.
such as:
xxxx --> disable SMP all cpu IRQ
OOO ---> no interrupt happen
OOO ---> no interrupt happen
zzzz ---> enable SMP all cou IRQ
Appreciate your kind help in advance,
^ permalink raw reply [flat|nested] 2+ messages in thread
* In SMP system, is there any api to disable IRQ for all CPUs?
2015-10-01 15:49 In SMP system, is there any api to disable IRQ for all CPUs? loody
@ 2015-10-02 2:01 ` Rik van Riel
0 siblings, 0 replies; 2+ messages in thread
From: Rik van Riel @ 2015-10-02 2:01 UTC (permalink / raw)
To: kernelnewbies
On 10/01/2015 11:49 AM, loody wrote:
> hi all:
> is there any kernel API can let IRQ disable for all CPU in SMP system
> for a while?
> I just need it for a experiment on my module.
>
> such as:
> xxxx --> disable SMP all cpu IRQ
> OOO ---> no interrupt happen
> OOO ---> no interrupt happen
> zzzz ---> enable SMP all cou IRQ
Look at the code in kernel/stop_machine.c
--
All rights reversed.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-10-02 2:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-10-01 15:49 In SMP system, is there any api to disable IRQ for all CPUs? loody
2015-10-02 2:01 ` Rik van Riel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).