Re: rt & hotplug work....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Jul 20, 2012 at 10:07:38PM +0200, Lars Segerlund wrote:
>  There was some cpu hotplug work recently, and I can't get my head
> around what happens with a dual cpu system if one core is shut down,
> specificly with spinlocks.
>  Won't it just hang or spin a lot ? I was thinking the locking was
> different in the build for uni of multi processors, to eliminate the
> deadlock risk on a uni processor.
> 
>  I do realise this might not be rt specific, but I'll ask anyhow.

When a CPU-hotplug operation takes a CPU offline, that CPU must release
any true spinlocks before actually going away.  Therefore, when the
surviving CPU attempts to acquire a spinlock, it is guaranteed to
acquire it immediately.  (Some architectures go even farther and
optimize away spinlock acquisitions when the system transitions to
single-CPU operation.)

							Thanx, Paul

--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux