Bugzilla – Bug 653
Allow compiling against kernel patched with Software Suspend 2.1.8.7
Last modified: 2005-10-09 12:20:14
You need to log in before you can comment on or make changes to this bug.
The CONFIG option changed to CONFIG_SUSPEND2 starting with Software Suspend 2.1.8.7 - this patch allows compiling against kernels patched with Software Suspend 2.1.8.7.
Created an attachment (id=365) [details] Patch for ipw2100-1.1.0
Created an attachment (id=403) [details] fix for all recent swsusp2 versions the attached patch checks for defenition of PF_SYNCTHREAD not for CONFIG_SOFTWARE_SUSPEND2 which fixes compilation when swsusp2 patches are applied but swsusp2 is not enabled and doesn't depend on the name of the config options
Where is PF_SYNCTHREAD defined? I can't find it in Software Suspend 2.1.8.9...
From suspend2 developer Bernard Blackham on #ipw2100: 17:07:13 < bernard_> PF_SYNCTHREAD is defined in include/linux/sched.h, as part of the new freezer mechanism that suspend2 introduced. 17:08:54 < bernard_> detecting PF_SYNCTHREAD will determine if the kernel has been *patched* with the suspend2 freezer (which is what raises the need for the workqueue change), and doesn't depend on it being turned on. it also means that if the freezer gets merged into the kernel, nothing else need be worried about.
A similar patch should be applied to ipw2200-1.0.5.
patch applied, thanks!
This patch isn't in 1.1.2. Please add in. Thanks.
ipw2100.c from ipw2100-1.1.2 contains the following lines, which allows compiling against all recent software suspend 2 versions: #ifdef PF_SYNCTHREAD priv->workqueue = create_workqueue(DRV_NAME, 0); #else priv->workqueue = create_workqueue(DRV_NAME); #endif
Thanks for your reminder, brix. Mark as verified.