diff options
Diffstat (limited to 'debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch')
-rw-r--r-- | debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch b/debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch deleted file mode 100644 index 7a42c1d66..000000000 --- a/debian/patches-rt/locallock-provide-get-put-_locked_ptr-variants.patch +++ /dev/null @@ -1,43 +0,0 @@ -From: Julia Cartwright <julia@ni.com> -Date: Mon, 7 May 2018 08:58:56 -0500 -Subject: [PATCH] locallock: provide {get,put}_locked_ptr() variants -Origin: https://www.kernel.org/pub/linux/kernel/projects/rt/5.2/older/patches-5.2.17-rt9.tar.xz - -Provide a set of locallocked accessors for pointers to per-CPU data; -this is useful for dynamically-allocated per-CPU regions, for example. - -These are symmetric with the {get,put}_cpu_ptr() per-CPU accessor -variants. - -Signed-off-by: Julia Cartwright <julia@ni.com> -Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de> ---- - include/linux/locallock.h | 10 ++++++++++ - 1 file changed, 10 insertions(+) - ---- a/include/linux/locallock.h -+++ b/include/linux/locallock.h -@@ -222,6 +222,14 @@ static inline int __local_unlock_irqrest - - #define put_locked_var(lvar, var) local_unlock(lvar); - -+#define get_locked_ptr(lvar, var) \ -+ ({ \ -+ local_lock(lvar); \ -+ this_cpu_ptr(var); \ -+ }) -+ -+#define put_locked_ptr(lvar, var) local_unlock(lvar); -+ - #define local_lock_cpu(lvar) \ - ({ \ - local_lock(lvar); \ -@@ -262,6 +270,8 @@ static inline void local_irq_lock_init(i - - #define get_locked_var(lvar, var) get_cpu_var(var) - #define put_locked_var(lvar, var) put_cpu_var(var) -+#define get_locked_ptr(lvar, var) get_cpu_ptr(var) -+#define put_locked_ptr(lvar, var) put_cpu_ptr(var) - - #define local_lock_cpu(lvar) get_cpu() - #define local_unlock_cpu(lvar) put_cpu() |