From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S964894AbZJJPkj (ORCPT ); Sat, 10 Oct 2009 11:40:39 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S934437AbZJJPkh (ORCPT ); Sat, 10 Oct 2009 11:40:37 -0400 Received: from www.tglx.de ([62.245.132.106]:55747 "EHLO www.tglx.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S934412AbZJJPkf (ORCPT ); Sat, 10 Oct 2009 11:40:35 -0400 Message-Id: <20091010153349.844488872@linutronix.de> User-Agent: quilt/0.47-1 Date: Sat, 10 Oct 2009 15:36:52 -0000 From: Thomas Gleixner To: LKML Cc: Andrew Morton , Ingo Molnar , Peter Zijlstra , Frederic Weisbecker , Vincent Sanders , John Kacur , Jonathan Corbet , Christoph Hellwig , Herbert Xu Subject: [patch 19/28] hw_random: Remove BKL from core References: <20091010153314.827301943@linutronix.de> Content-Disposition: inline; filename=driver-hw-random-core-remove-bkl.patch Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org hw_random core is completely serialized with rng_mutex. No need for the cycle_kernel_lock() magic. Signed-off-by: Thomas Gleixner Cc: Herbert Xu --- drivers/char/hw_random/core.c | 1 - 1 file changed, 1 deletion(-) Index: linux-2.6-tip/drivers/char/hw_random/core.c =================================================================== --- linux-2.6-tip.orig/drivers/char/hw_random/core.c +++ linux-2.6-tip/drivers/char/hw_random/core.c @@ -87,7 +87,6 @@ static int rng_dev_open(struct inode *in return -EINVAL; if (filp->f_mode & FMODE_WRITE) return -EINVAL; - cycle_kernel_lock(); return 0; }