In SMP system, is there any api to disable IRQ for all CPUs?
Oct. 1, 2015
3:49 p.m.
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,
Oct. 2, 2015
2:01 a.m.
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.
3971
Age (days ago)
3972
Last active (days ago)
1 comments
2 participants
participants (2)
-
loody -
Rik van Riel