由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Linux版 - spin_lock_irqsave vs. disable irq vs. mask irq
相关主题
exception与interrupt的区别?Linux scheduler
rsync 20G的home directory要多长时间ubuntu这个崩溃法什么原因?
推荐一个linux下能用的usb wireless adapter吧几道跟Linux有关的面试题 (转载)
问个很难的问题谁用过google的tcmalloc啊, 还有futex和spinlocks那个好
quick question, timer on multi-core最准确,精简 spinlock VS semaphore 的 区别??
请教:Linux 和 ThreadX 各有什么优缺点?firefox开始崩溃了。。。
Balance network interrupts这些系统在terminal里面蹦出来的信息是啥意思?
when should use multiprocess not multithread: embedded multicore linuxlimits.conf不work
相关话题的讨论汇总
话题: interrupts话题: disable话题: irqsave话题: spin话题: interrupt
进入Linux版参与讨论
1 (共1页)
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

1 (共1页)
进入Linux版参与讨论
相关主题
limits.conf不workquick question, timer on multi-core
Linux里如何查找当前release name? (转载)请教:Linux 和 ThreadX 各有什么优缺点?
VirtualBox 3.0.0 (for Linux) releasedBalance network interrupts
vbox装不上了when should use multiprocess not multithread: embedded multicore linux
exception与interrupt的区别?Linux scheduler
rsync 20G的home directory要多长时间ubuntu这个崩溃法什么原因?
推荐一个linux下能用的usb wireless adapter吧几道跟Linux有关的面试题 (转载)
问个很难的问题谁用过google的tcmalloc啊, 还有futex和spinlocks那个好
相关话题的讨论汇总
话题: interrupts话题: disable话题: irqsave话题: spin话题: interrupt