summaryrefslogtreecommitdiffstats
path: root/drivers/idle
diff options
context:
space:
mode:
authorFrederic Weisbecker <fweisbec@gmail.com>2009-10-09 20:31:02 +0200
committerThomas Gleixner <tglx@linutronix.de>2009-10-14 17:36:49 +0200
commit205153aa40b7fb36dc7fe76c1798584ace55b288 (patch)
tree27493306d3fe3660e11af86f437da0c573db15f2 /drivers/idle
parent4c2aedc2543248c3fdc8c06c662b589d36c93bbb (diff)
downloadtalos-op-linux-205153aa40b7fb36dc7fe76c1798584ace55b288.tar.gz
talos-op-linux-205153aa40b7fb36dc7fe76c1798584ace55b288.zip
mem_class: Drop the bkl from memory_open()
The generic open callback for the mem class devices is "protected" by the bkl. Let's look at the datas manipulated inside memory_open: - inode and file: safe - the devlist: safe because it is constant - the memdev classes inside this array are safe too (constant) After we find out which memdev file operation we need to use, we call its open callback. Depending on the targeted memdev, we call either open_port() that doesn't manipulate any racy data (just a capable() check), or we call nothing. So it's safe to remove the big kernel lock there. Signed-off-by: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <1255113062-5835-1-git-send-email-fweisbec@gmail.com> Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'drivers/idle')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud