Skip to contentSkip to conversation

How to distinguish original kernel vs -rt kernel

DISCUSSION Pierre Peiffer 2 participants 3 messages Mar 7, 2007

lore
Share & tools
lore
#0 lore raw

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
#1 lore raw
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

#2 lore raw
Quoted 3 lines · Thomas Gleixner

It is HRTIMER_MODE_xx in mainline as of 2.6.21-rc1. -rt kernels are always a bit ahead of time. :)

Great !
Thanks.

Signature · 1 line
Pierre