Permalink
Browse files

disable scheduling by default

  • Loading branch information...
1 parent 46bcf3f commit 6ac11c023732f8c38b8e03df277ca1887dc81ca9 @wkbjerry wkbjerry committed Sep 11, 2012
Showing with 5 additions and 1 deletion.
  1. +1 −1 mod/gdev/Makefile
  2. +4 −0 mod/gdev/gdev_drv.c
View
@@ -7,7 +7,7 @@ obj-m := $(TARGET).o
include $(PWD)/Driver.mk # export $(DRIVER_NAME)
-EXTRA_CFLAGS := -Iinclude/drm -I/usr/local/gdev/$(DRIVER_NAME)
+EXTRA_CFLAGS := -Iinclude/drm -I/usr/local/gdev/$(DRIVER_NAME) -D GDEV_SCHED_DISABLED
SYSSRC = /lib/modules/$(shell uname -r)/build
KBUILD_EXTRA_SYMBOLS = /usr/local/gdev/$(DRIVER_NAME)/Module.symvers
View
@@ -484,7 +484,9 @@ int gdev_major_init(void)
}
/* set interrupt handler. */
+#ifndef GDEV_SCHED_DISABLED
gdev_drv_setnotify(__gdev_notify_handler);
+#endif
return 0;
@@ -513,7 +515,9 @@ int gdev_major_exit(void)
{
int i;
+#ifndef GDEV_SCHED_DISABLED
gdev_drv_unsetnotify(__gdev_notify_handler);
+#endif
gdev_proc_delete();

0 comments on commit 6ac11c0

Please sign in to comment.