w*s 发帖数: 7227 | 1 guys, when there're too many interrupts happening,
in very old days you disable interrupts (mask interrupt pins in these HW
registers ?)
while processing this current interrupt.
is spin_lock_irqsave() doing the same thing ?
"The use of spin_lock_irqsave() will disable interrupts locally and provide
the spinlock on SMP."
what does "disable interrupts locally" mean ? | l*********s 发帖数: 5409 | 2 so advanced... admiring lz . | l*****s 发帖数: 2109 | 3 In multi processor system, locally means the processor run the code of spin
lock.
You can not disable interrupt of other processor.
provide
【在 w*s 的大作中提到】 : guys, when there're too many interrupts happening, : in very old days you disable interrupts (mask interrupt pins in these HW : registers ?) : while processing this current interrupt. : is spin_lock_irqsave() doing the same thing ? : "The use of spin_lock_irqsave() will disable interrupts locally and provide : the spinlock on SMP." : what does "disable interrupts locally" mean ?
| w*s 发帖数: 7227 | 4 big cow,
for this "disable interrupt", is it the same as mask interrupts in the
HW register or ?
spin
【在 l*****s 的大作中提到】 : In multi processor system, locally means the processor run the code of spin : lock. : You can not disable interrupt of other processor. : : provide
| l*****s 发帖数: 2109 | 5 You can check the implement code of both function, should be in assembly
code.
On x86, it save flags and cli, clear interrupt.
【在 w*s 的大作中提到】 : big cow, : for this "disable interrupt", is it the same as mask interrupts in the : HW register or ? : : spin
|
|