Skip to contentSkip to conversation

[PATCH][linux-2.6.18-xen.hg]

PATCH New Ben Guthro 1 participant 1 message Jul 26, 2007 Xen hypervisor interface

lore
Share & tools
lore

Ben Guthro

author
#0 lore raw

PATCH 1/1 [PATCH][linux-2.6.18-xen.hg]

This patch makes the code adding PF_NOFREEZE conditional on the kernel version. PF_NOFREEZE first showed up in 2.6.6-rc2

This allows the xenbus code to continue to compile against kernels pre 2.6.6 - like SLES9 (2.6.5)

Patch: linux-xenbus-legacy.patch

drivers/xen/xenbus/xenbus_xs.c +5 -1
diff -r d2451033c8df drivers/xen/xenbus/xenbus_xs.c
@@ -717,8 +717,10 @@ static int xenwatch_thread(void *unused)
 {
 	struct list_head *ent;
 	struct xs_stored_msg *msg;
-
+        
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)       
 	current->flags |= PF_NOFREEZE;
+#endif
 	for (;;) {
 		wait_event_interruptible(watch_events_waitq,
 					 !list_empty(&watch_events));
@@ -837,7 +839,9 @@ static int xenbus_thread(void *unused)
 {
 	int err;
 
+#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,6)  
 	current->flags |= PF_NOFREEZE;
+#endif
 	for (;;) {
 		err = process_msg();
 		if (err)

_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xensource.com/xen-devel