From: Ben Pfaff Date: Fri, 16 May 2008 23:02:34 +0000 (-0700) Subject: Don't allow CONFIG_PREEMPT with Linux 2.6.x before 2.6.21, because it's busted. X-Git-Url: https://pintos-os.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e5ccf3cc8ba3c91e57c7c6f6c9ebe05e429a5854;p=openvswitch Don't allow CONFIG_PREEMPT with Linux 2.6.x before 2.6.21, because it's busted. --- diff --git a/datapath/linux-2.6/compat-2.6/compat26.h b/datapath/linux-2.6/compat-2.6/compat26.h index 80132324..04335f7d 100644 --- a/datapath/linux-2.6/compat-2.6/compat26.h +++ b/datapath/linux-2.6/compat-2.6/compat26.h @@ -3,6 +3,10 @@ #include +#if defined(CONFIG_PREEMPT) && LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,21) +#error "CONFIG_PREEMPT is broken with 2.6.x before 2.6.21--see commit 4498121ca3, \"[NET]: Handle disabled preemption in gfp_any()\"" +#endif + #if LINUX_VERSION_CODE <= KERNEL_VERSION(2,6,23) /*---------------------------------------------------------------------------- * In 2.6.24, a namespace argument became required for dev_get_by_name. */