Commit 9fdbd959 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] Back out the initial work for atomic copy_*_user()

Back out the use of preempt_count to signify atomicity wrt pagefaults.
We won't do it that way - in_atomic() works fine.
parent 0e64a39d
...@@ -48,9 +48,6 @@ do { \ ...@@ -48,9 +48,6 @@ do { \
preempt_check_resched(); \ preempt_check_resched(); \
} while (0) } while (0)
#define inc_preempt_count_non_preempt() do { } while (0)
#define dec_preempt_count_non_preempt() do { } while (0)
#else #else
#define preempt_disable() do { } while (0) #define preempt_disable() do { } while (0)
...@@ -58,13 +55,6 @@ do { \ ...@@ -58,13 +55,6 @@ do { \
#define preempt_enable() do { } while (0) #define preempt_enable() do { } while (0)
#define preempt_check_resched() do { } while (0) #define preempt_check_resched() do { } while (0)
/*
* Sometimes we want to increment the preempt count, but we know that it's
* already incremented if the kernel is compiled for preemptibility.
*/
#define inc_preempt_count_non_preempt() inc_preempt_count()
#define dec_preempt_count_non_preempt() dec_preempt_count()
#endif #endif
#endif /* __LINUX_PREEMPT_H */ #endif /* __LINUX_PREEMPT_H */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment