[PATCH] [x86] Move cmpxchg fallbacks to a generic place

2008-08-18 Thread Thomas Petazzoni
arch/x86/kernel/cpu/intel.c defines a few fallback functions (cmpxchg_*()) that are used when the CPU doesn't support cmpxchg and/or cmpxchg64 natively. However, while defined in an Intel-specific file, these functions are also used for CPUs from other vendors when they don't support cmpxchg

Re: [PATCH] [x86] Move cmpxchg fallbacks to a generic place

2008-08-18 Thread Ingo Molnar
* Thomas Petazzoni [EMAIL PROTECTED] wrote: arch/x86/kernel/cpu/intel.c defines a few fallback functions (cmpxchg_*()) that are used when the CPU doesn't support cmpxchg and/or cmpxchg64 natively. However, while defined in an Intel-specific file, these functions are also used for CPUs from

Module init for compiled in vs loaded modules

2008-08-18 Thread Fundu
Hi, For kernel modules can be loaded by explicitly do insmod etc for ones that are not compiled into the kernel. 1) But where do i look to find how the kernel loads(ie. calls the fn exported by module_init()) for modules compiled into the kernel. 2) Does the kernel call some kind of

Re: Module init for compiled in vs loaded modules

2008-08-18 Thread Amol Lad
Code base of 2.6.18 1) But where do i look to find how the kernel loads(ie. calls the fn exported by module_init()) for modules compiled into the kernel. linux/init.h: #ifndef MODULE ... #define module_init(x) __initcall(x); #define __initcall(fn) device_initcall(fn) #define