> -----Original Message----- > From: Oliver Neukum [mailto:oneu...@suse.de] > Sent: Wednesday, October 31, 2012 5:03 PM > To: Liu, Chuansheng > Cc: john.stu...@linaro.org; t...@linutronix.de; gre...@linuxfoundation.org; > linux-kernel@vger.kernel.org; Liu, Chuansheng > Subject: Re: [PATCH 1/3] alarmtimer: Replace the spinlock rtcdev_lock with > mutex > > On Thursday 01 November 2012 00:20:55 Chuansheng Liu wrote: > > When do code reviewing, found no special requirement to > > use spin_lock_irqsave/spin_unlock_irqrestore, because > > alarmtimer_get_rtcdev() is called by posix clock interface. > > So would like to use mutex to replace it. > > What is gained thereby? spin_lock_irqsave will disable the preempt and local irq, it is expensive than mutex. Thanks. > > Regards > Oliver
-- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/