From: Arnd Bergmann Date: Tue, 20 May 2008 17:16:58 +0000 (+0200) Subject: via-pmu: BKL pushdown X-Git-Tag: v2.6.27-rc1~1103^2~18 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=ffe83733b88655b643e9d4ad0dda5ef9584d5926;p=linux-2.6-omap-h63xx.git via-pmu: BKL pushdown Signed-off-by: Arnd Bergmann --- diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index d6365a9f063..d524dc245a2 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -18,6 +18,7 @@ * */ #include +#include #include #include #include @@ -2047,6 +2048,7 @@ pmu_open(struct inode *inode, struct file *file) pp->rb_get = pp->rb_put = 0; spin_lock_init(&pp->lock); init_waitqueue_head(&pp->wait); + lock_kernel(); spin_lock_irqsave(&all_pvt_lock, flags); #if defined(CONFIG_INPUT_ADBHID) && defined(CONFIG_PMAC_BACKLIGHT) pp->backlight_locker = 0; @@ -2054,6 +2056,7 @@ pmu_open(struct inode *inode, struct file *file) list_add(&pp->list, &all_pmu_pvt); spin_unlock_irqrestore(&all_pvt_lock, flags); file->private_data = pp; + unlock_kernel(); return 0; }