Re: [PATCH 1/3] genclk: add generic framework for managing clocks.

!MAILaRCHIVE_VOTE_RePLACE
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: Andrew Morton <akpm@...>
Cc: <linux-kernel@...>, Haavard Skinnemoen <haavard.skinnemoen@...>, Russell King <rmk+lkml@...>, Paul Mundt <lethal@...>, pHilipp Zabel <philipp.zabel@...>, Pavel Machek <pavel@...>, <tony@...>, <paul@...>, David Brownell <david-b@...>, Mark Brown <broonie@...>, ian <spyro@...>
Date: Sunday, July 13, 2008 - 4:53 pm

2008/7/13, Andrew Morton <akpm@linux-foundation.org>:

Strange. They were developed against Russell's arm:devel. Please check
against that tree.


Fine, I'll drop that conditional compilation and always use struct
lock_class_key.
The whole thing is required to make lockdep work with clocklib.
Otherwise it thinks that all locks inside struct clk belong to the
same class and "detects" deadlock when code tries to lock a clock,
when already holding the lock for the other one.


The header file defining the "clocks" and clocks_lock is for private
use only, e.g. the debugfs code. I will change that to
genclk-namespace those.


See above. That was IMO the most clean way to make this code work with lockdep.


Because of mutex usage? I'll move it outside of the lock.


I'll move it outside of the spinlock. But tell me please, why?


Usually I do build code with all debugs enabled...



I'll leave my version, as it's really more clean.


The updated patch will be posted few hours later.


-- 
With best wishes
Dmitry
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 3/3] Clocklib: refactor SA-1100 to use clocklib, Dmitry Baryshkov, (Tue Jul 8, 9:44 am)
[PATCH 2/3] Refactor arm/pxa to use generic clocks support, Dmitry Baryshkov, (Tue Jul 8, 9:43 am)
Re: [PATCH 1/3] genclk: add generic framework for managing c..., Dmitry, (Sun Jul 13, 4:53 pm)