From mboxrd@z Thu Jan 1 00:00:00 1970 From: ralf@linux-mips.org Subject: [patch 06/14] i8253: Make pcspkr input driver use the shared i8253_lock. Date: Wed, 01 Jun 2011 19:05:02 +0100 Message-ID: <20110601180610.453577265@duck.linux-mips.net> References: <20110601180456.801265664@duck.linux-mips.net> Return-path: Content-Disposition: inline; filename=i8253-move-pcspkr.c-to-shared-lock.patch Sender: linux-kernel-owner@vger.kernel.org To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Dmitry Torokhov , linux-input@vger.kernel.org List-Id: linux-arch.vger.kernel.org Signed-off-by: Ralf Baechle To: linux-kernel@vger.kernel.org Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org drivers/input/misc/pcspkr.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) Index: linux-mips/drivers/input/misc/pcspkr.c =================================================================== --- linux-mips.orig/drivers/input/misc/pcspkr.c +++ linux-mips/drivers/input/misc/pcspkr.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -25,14 +26,6 @@ MODULE_DESCRIPTION("PC Speaker beeper dr MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:pcspkr"); -#if defined(CONFIG_MIPS) || defined(CONFIG_X86) -/* Use the global PIT lock ! */ -#include -#else -#include -static DEFINE_RAW_SPINLOCK(i8253_lock); -#endif - static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) { unsigned int count = 0; From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from h5.dl5rb.org.uk ([81.2.74.5]:59103 "EHLO duck.linux-mips.net" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1759613Ab1FATra (ORCPT ); Wed, 1 Jun 2011 15:47:30 -0400 Message-ID: <20110601180610.453577265@duck.linux-mips.net> Date: Wed, 01 Jun 2011 19:05:02 +0100 From: ralf@linux-mips.org Subject: [patch 06/14] i8253: Make pcspkr input driver use the shared i8253_lock. References: <20110601180456.801265664@duck.linux-mips.net> Content-Disposition: inline; filename=i8253-move-pcspkr.c-to-shared-lock.patch Sender: linux-arch-owner@vger.kernel.org List-ID: To: linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Cc: Dmitry Torokhov , linux-input@vger.kernel.org Message-ID: <20110601180502.-ibZ3TR63jUeXD-KZSUi5Lx3ON0VNIHkVPnQHqg1jRk@z> Signed-off-by: Ralf Baechle To: linux-kernel@vger.kernel.org Cc: Dmitry Torokhov Cc: linux-input@vger.kernel.org drivers/input/misc/pcspkr.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) Index: linux-mips/drivers/input/misc/pcspkr.c =================================================================== --- linux-mips.orig/drivers/input/misc/pcspkr.c +++ linux-mips/drivers/input/misc/pcspkr.c @@ -14,6 +14,7 @@ #include #include +#include #include #include #include @@ -25,14 +26,6 @@ MODULE_DESCRIPTION("PC Speaker beeper dr MODULE_LICENSE("GPL"); MODULE_ALIAS("platform:pcspkr"); -#if defined(CONFIG_MIPS) || defined(CONFIG_X86) -/* Use the global PIT lock ! */ -#include -#else -#include -static DEFINE_RAW_SPINLOCK(i8253_lock); -#endif - static int pcspkr_event(struct input_dev *dev, unsigned int type, unsigned int code, int value) { unsigned int count = 0;