[Xenomai] [PATCH 2/4] cobalt/posix/signal: Replace RT-unsafe printk_ratelimit with xnclock_ratelimit

Jan Kiszka jan.kiszka at siemens.com
Thu Jul 5 17:46:09 CEST 2018


From: Jan Kiszka <jan.kiszka at siemens.com>

Signed-off-by: Jan Kiszka <jan.kiszka at siemens.com>
---
 kernel/cobalt/posix/signal.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kernel/cobalt/posix/signal.c b/kernel/cobalt/posix/signal.c
index 8e4d920b2d..39e4733f69 100644
--- a/kernel/cobalt/posix/signal.c
+++ b/kernel/cobalt/posix/signal.c
@@ -153,7 +153,7 @@ struct cobalt_sigpending *cobalt_signal_alloc(void)
 	struct cobalt_sigpending *sigp;
 
 	if (list_empty(&sigpending_pool)) {
-		if (printk_ratelimit())
+		if (xnclock_ratelimit())
 			printk(XENO_WARNING "signal bucket pool underflows\n");
 		return NULL;
 	}
-- 
2.16.4




More information about the Xenomai mailing list