fixed rtai build

This commit is contained in:
Sascha Ittner
2018-05-15 10:00:06 +02:00
parent 494acd1c59
commit 85f08da583
5 changed files with 30 additions and 13 deletions

View File

@@ -23,6 +23,7 @@
#include <linux/jiffies.h>
#include <linux/time.h>
#include <linux/sched.h>
#include <linux/math64.h>
#define lcec_zalloc(size) kzalloc(size, GFP_KERNEL)
#define lcec_free(ptr) kfree(ptr)
@@ -34,5 +35,11 @@
#define lcec_schedule() schedule()
static inline long long lcec_mod_64(long long val, unsigned long div) {
s32 rem;
div_s64_rem(val, div, &rem);
return rem;
}
#endif