How to distinguish original kernel vs -rt kernel
Hi,
Supposing I have an external kernel module which I would like to compile against both original kernel and -rt kernel, what is the proper/most elegant way to know which kernel I'm compiling with ? I've only found the EXTRAVERSION define, am I missing a better way ?
In fact, I'm facing the problem of HRTIMER_ABS/REL being renamed to HRTIMER_MODE_ABS/REL with patch -rt. Is there a reason of this ?
Does anyone have an objection of keeping it the same (let's say HRTIMER_ABS/REL) in kernel -rt ?
Thanks,
Signature · 1 line
Pierre
Quoted 5 lines · Pierre Peiffer
In fact, I'm facing the problem of HRTIMER_ABS/REL being renamed to HRTIMER_MODE_ABS/REL with patch -rt. Is there a reason of this ?
Does anyone have an objection of keeping it the same (let's say HRTIMER_ABS/REL) in kernel -rt ?
It is HRTIMER_MODE_xx in mainline as of 2.6.21-rc1. -rt kernels are always a bit ahead of time. :)
tglx
Quoted 3 lines · Thomas Gleixner
It is
HRTIMER_MODE_xxin mainline as of 2.6.21-rc1. -rt kernels are always a bit ahead of time. :)
Great !
Thanks.
Signature · 1 line
Pierre