aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch
diff options
context:
space:
mode:
authorGabor Juhos <juhosg@openwrt.org>2012-05-27 15:01:07 +0000
committerGabor Juhos <juhosg@openwrt.org>2012-05-27 15:01:07 +0000
commitcead4b47abdebcb8506451b4a3e30028982161a1 (patch)
treeb7cf1f3e2130b5411b88351322add5aa0e6b91a9 /target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch
parent7a4db11fbb68e99b1e07028d5c65b562e988b395 (diff)
downloadupstream-cead4b47abdebcb8506451b4a3e30028982161a1.tar.gz
upstream-cead4b47abdebcb8506451b4a3e30028982161a1.tar.bz2
upstream-cead4b47abdebcb8506451b4a3e30028982161a1.zip
omap24xx: remove 3.1 support
SVN-Revision: 31890
Diffstat (limited to 'target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch')
-rw-r--r--target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch41
1 files changed, 0 insertions, 41 deletions
diff --git a/target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch b/target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch
deleted file mode 100644
index d7eece605a..0000000000
--- a/target/linux/omap24xx/patches-3.1/309-omapfb-circular-mutex-workaround.patch
+++ /dev/null
@@ -1,41 +0,0 @@
---- a/drivers/video/omap/omapfb_main.c
-+++ b/drivers/video/omap/omapfb_main.c
-@@ -419,10 +419,10 @@ static void set_fb_fix(struct fb_info *f
- fbi->screen_base = rg->vaddr;
-
- if (!from_init) {
-- mutex_lock(&fbi->mm_lock);
-+ preempt_disable();
- fix->smem_start = rg->paddr;
- fix->smem_len = rg->size;
-- mutex_unlock(&fbi->mm_lock);
-+ preempt_enable();
- } else {
- fix->smem_start = rg->paddr;
- fix->smem_len = rg->size;
-@@ -932,10 +932,10 @@ static int omapfb_setup_mem(struct fb_in
- * plane memory is dealloce'd, the other
- * screen parameters in var / fix are invalid.
- */
-- mutex_lock(&fbi->mm_lock);
-+ preempt_disable();
- fbi->fix.smem_start = 0;
- fbi->fix.smem_len = 0;
-- mutex_unlock(&fbi->mm_lock);
-+ preempt_enable();
- }
- }
- }
---- a/drivers/video/fbmem.c
-+++ b/drivers/video/fbmem.c
-@@ -1369,8 +1369,10 @@ fb_mmap(struct file *file, struct vm_are
- }
-
- /* frame buffer memory */
-+ preempt_disable();
- start = info->fix.smem_start;
- len = PAGE_ALIGN((start & ~PAGE_MASK) + info->fix.smem_len);
-+ preempt_enable();
- if (off >= len) {
- /* memory mapped io */
- off -= len;