From 968b1efd6eab5ac5a8926144e61c07941305b89e Mon Sep 17 00:00:00 2001 From: malc Date: Sun, 22 Jun 2008 16:20:48 +0400 Subject: [PATCH] Linux kernel module does not work with RT kernels Mention this in documentation and refuse to compile when RT kernel is detected (is the check correct btw?) --- README | 6 +++--- mod/itc-mod.c | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/README b/README index 09c4cc3..8c27c13 100644 --- a/README +++ b/README @@ -60,9 +60,9 @@ Apart from being inaccurate, `/proc/stat' exports monotonically increasing load times but _NOT_ real time[1], so there's omni-present sub-jiffy error. Not to mention that jiffy resolution is somewhat low. -If you depend on sorta-kinda semi-correct load meter in situation when -`/proc/stat' is disconnected with reality APC might present a better -choice. +If you are not running RT kernel and need sorta-kinda, semi-correct +load meter in situation when `/proc/stat' is disconnected with reality +APC might present a better choice. The kernel module part of APC tries to insert itself as a power management idle handler and when invoked measure how much time is diff --git a/mod/itc-mod.c b/mod/itc-mod.c index fc86698..87319a4 100644 --- a/mod/itc-mod.c +++ b/mod/itc-mod.c @@ -1,3 +1,7 @@ +#ifdef CONFIG_PREEMPT_RT +#error Preempt RT kernels are not supported +#endif + #ifdef CONFIG_PREEMPT #define ITC_PREEMPT_HACK #endif -- 2.11.4.GIT