summaryrefslogtreecommitdiff
path: root/linux/sched.c
diff options
context:
space:
mode:
authorKent Overstreet <kent.overstreet@gmail.com>2018-12-19 20:34:24 -0500
committerKent Overstreet <kent.overstreet@gmail.com>2018-12-19 20:34:24 -0500
commit825d180c0758a3f5a4dd8dd5d48d98952bf7a0ae (patch)
tree3c0f2987c0520a3b6b82113ecbccc360948c0e0e /linux/sched.c
parent94cafcb8e5c196afefebdc090ba0594db4cf746f (diff)
Delete more shim layer code
Diffstat (limited to 'linux/sched.c')
-rw-r--r--linux/sched.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/linux/sched.c b/linux/sched.c
index c996945e..b3fc7739 100644
--- a/linux/sched.c
+++ b/linux/sched.c
@@ -1,17 +1,15 @@
-#include <linux/futex.h>
+#include <stdio.h>
#include <string.h>
#include <sys/mman.h>
+#include <linux/futex.h>
/* hack for mips: */
#define CONFIG_RCU_HAVE_FUTEX 1
#include <urcu/futex.h>
-#include <linux/math64.h>
-#include <linux/printk.h>
#include <linux/rcupdate.h>
#include <linux/sched.h>
-#include <linux/slab.h>
#include <linux/timer.h>
__thread struct task_struct *current;
@@ -83,7 +81,7 @@ long schedule_timeout(long timeout)
* that will tell you if something is gone wrong and where.
*/
if (timeout < 0) {
- printk(KERN_ERR "schedule_timeout: wrong timeout "
+ fprintf(stderr, "schedule_timeout: wrong timeout "
"value %lx\n", timeout);
current->state = TASK_RUNNING;
goto out;