Real-time kernel compile-fix for 32-bit when disabling CONFIG_PREEMPT_RT
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
2009/3/31 <[email protected]>:
Quoted 50 lines · John Kacur
Quoted 30 lines
If you start with the real-time kernel linux-2.6.26.5-rt9 and configure it to disable
CONFIG_PREEMPT_RT, for exampleCONFIG_PREEMPT_DESKTOP=y
#CONFIG_PREEMPT_RTis not setyou will get the following compile error on 32-bit i386. (actually, this will happen on any platform that doesn't use
CONFIG_RWSEM_GENERIC_SPINLOCK)In file included from
include/linux/notifier.h:14,from include/linux/memory_hotplug.h:6, from include/linux/mmzone.h:560, from include/linux/gfp.h:4, from include/linux/slab.h:12, from include/linux/percpu.h:5, from include/linux/rcupdate.h:39, from include/linux/tracepoint.h:18, from include/linux/module.h:19, from include/linux/crypto.h:21, from arch/x86/kernel/asm-offsets_32.c:7, from arch/x86/kernel/asm-offsets.c:2:
include/linux/rwsem.h:149: error: redefinition of 'rwsem_is_locked'include/asm/rwsem.h:261: error: previous definition of 'rwsem_is_locked' was hereinclude/linux/rwsem.h: In function 'rwsem_is_locked':include/linux/rwsem.h:151: error: implicit declaration of function 'compat_rwsem_is_locked'
make[1]: *** [arch/x86/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2Quoted 5 lines
The fix is simple, and should be folded back into the rt-mutex-core.patch Fix is attached.
rwsem_is_locked-fix.patch
1K檢視下載Hi,
My OS Kernel is Fedora 9 which is 2.6.25, and I've downloaded linux-2.6.26.8.tar.bz2 and patch-2.6.26.8-rt16.bz2. Also I've already patched them and downloaded the rwsem_is_locked-fix.patch and patched the rwsem_is_locked-fix.patch withrwsem.h. But there are still some problems,
it shows:mm/slub.c: In function 'slab_unlock';mm/slub.c:1245: error: implicit declaration of function '_bit_spin_unlock'
make[1]: ***[mm/slub.0] Error 1
make: *** [mm] Error 2
Quoted 4 lines
Would you please tell me why I'm encountering these? Sincerely
Geoffrey
Hmnn, did you apply the proposed rwsem_is_locked-fix.patch ontop of the rt-patch? Please don't use that patch since patch-2.6.26.8-rt16 should already have a fix for this problem. Please try this again, using only linux-2.6.26.8 and patch-2.6.26.8-rt16.
John
--
To unsubscribe from this list: send the line "unsubscribe linux-rt-users" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
A message that is not in the archive (sent off-list or not yet received): [email protected]
A message that is not in the archive (sent off-list or not yet received): [email protected]
2009/4/1 Geoffrey Chien <[email protected]>:
Quoted 9 lines
Sorry, I accidentally hit the "send" button, I haven't typed my question yet,
Yes, it worked now, but I have to enable "multi-core schedular support", and in the "preemption mode(complete preemption real time), I also have to do -->[X]Complete Preemption (Real Time)After doing the two things above, it worked,
well, I'm wondering, if I disable "Complete Preemption(Real Time), Is it gonna make any differences?
Could you please reply to all so the people on the linux-rt-users list can see your questions. Someone may know an answer to your questions better than I do. Also, you're supposed to post under the other text not above it. (I just snipped it out)
There really is no point to the rt patch if you disable complete preemption, however, I suppose you should be able to so because someday the rt-developers would like this integrated into the mainstream linux kernel. So, I would suggest to you, that if you can find a config that doesn't compile for you, please send it to the list, and someone will generate a patch to make sure that either that combination compiles, or is impossible to select.
Thanks
-----SNIP-----