mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: yegorslists@googlemail.com
To: barebox@lists.infradead.org
Subject: [PATCH 1/5] Introduce include/linux/sched.h
Date: Wed, 27 Jan 2016 16:22:54 +0100	[thread overview]
Message-ID: <1453908178-7106-1-git-send-email-yegorslists@googlemail.com> (raw)

From: Yegor Yefremov <yegorslists@googlemail.com>

Move cond_resched() from barebox-wrapper.h to its original
place.

Signed-off-by: Yegor Yefremov <yegorslists@googlemail.com>
---
 fs/ubifs/ubifs.h                | 1 +
 include/linux/barebox-wrapper.h | 2 --
 include/linux/sched.h           | 6 ++++++
 3 files changed, 7 insertions(+), 2 deletions(-)
 create mode 100644 include/linux/sched.h

diff --git a/fs/ubifs/ubifs.h b/fs/ubifs/ubifs.h
index 50ac1c4..a4f8523 100644
--- a/fs/ubifs/ubifs.h
+++ b/fs/ubifs/ubifs.h
@@ -40,6 +40,7 @@
 #include <linux/dcache.h>
 #include <linux/mount.h>
 #include <linux/path.h>
+#include <linux/sched.h>
 #include <linux/ctype.h>
 #include <linux/math64.h>
 #include <linux/rbtree.h>
diff --git a/include/linux/barebox-wrapper.h b/include/linux/barebox-wrapper.h
index 5fe7971..3433631 100644
--- a/include/linux/barebox-wrapper.h
+++ b/include/linux/barebox-wrapper.h
@@ -65,8 +65,6 @@ struct rw_semaphore { int i; };
 
 typedef int	wait_queue_head_t;
 
-#define cond_resched()			do { } while (0)
-
 #define init_waitqueue_head(...)	do { } while (0)
 
 typedef int irqreturn_t;
diff --git a/include/linux/sched.h b/include/linux/sched.h
new file mode 100644
index 0000000..3375a09
--- /dev/null
+++ b/include/linux/sched.h
@@ -0,0 +1,6 @@
+#ifndef _LINUX_SCHED_H
+#define _LINUX_SCHED_H
+
+#define cond_resched()			do { } while (0)
+
+#endif
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

             reply	other threads:[~2016-01-27 15:23 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-01-27 15:22 yegorslists [this message]
2016-01-27 15:22 ` [PATCH 2/5] Introduce include/linux/spinlock.h yegorslists
2016-01-27 15:22 ` [PATCH 3/5] Introduce include/linux/mutex.h yegorslists
2016-01-27 15:22 ` [PATCH 4/5] Introduce include/linux/wait.h yegorslists
2016-01-27 15:22 ` [PATCH 5/5] Introduce include/linux/rwsem.h yegorslists
2016-01-29  7:08 ` [PATCH 1/5] Introduce include/linux/sched.h Sascha Hauer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1453908178-7106-1-git-send-email-yegorslists@googlemail.com \
    --to=yegorslists@googlemail.com \
    --cc=barebox@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox