Checking if running kernel compiled with CONFIG_PREEMPT

Gilboa Davara gilboad at gmail.com
Tue Nov 3 06:54:49 UTC 2009


On Fri, 2009-10-30 at 17:21 +0000, planetf1 wrote:
> I have a 2.6.31 kernel from F12.
> 
> I believe I've built it with CONFIG_PREEMPT but given the intracacies of 
> the rpm build, what's the easiest way to check an installed kernel to 
> see if that flag had been used during build?

grep CONFIG_PREEMPT /boot/config-$(uname -r)

(Replace the uname -r by the kernel version for kernels other than the
current running kernel)

- Gilboa




More information about the Fedora-kernel-list mailing list