]> rtime.felk.cvut.cz Git - hercules2020/nv-tegra/linux-4.4.git/blob - rt-patches/0043-core-Do-not-disable-interrupts-on-RT-in-kernel-users.patch
WAR:media:i2c:ov5693: add flip and mirror setting
[hercules2020/nv-tegra/linux-4.4.git] / rt-patches / 0043-core-Do-not-disable-interrupts-on-RT-in-kernel-users.patch
1 From 32849e2dab445dbca03bdc791254f1c2e682bf15 Mon Sep 17 00:00:00 2001
2 From: Thomas Gleixner <tglx@linutronix.de>
3 Date: Tue, 21 Jul 2009 23:06:05 +0200
4 Subject: [PATCH 043/365] core: Do not disable interrupts on RT in
5  kernel/users.c
6
7 Use the local_irq_*_nort variants to reduce latencies in RT. The code
8 is serialized by the locks. No need to disable interrupts.
9
10 Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
11 ---
12  kernel/user.c | 4 ++--
13  1 file changed, 2 insertions(+), 2 deletions(-)
14
15 diff --git a/kernel/user.c b/kernel/user.c
16 index b069ccb..1a2e88e 100644
17 --- a/kernel/user.c
18 +++ b/kernel/user.c
19 @@ -161,11 +161,11 @@ void free_uid(struct user_struct *up)
20         if (!up)
21                 return;
22  
23 -       local_irq_save(flags);
24 +       local_irq_save_nort(flags);
25         if (atomic_dec_and_lock(&up->__count, &uidhash_lock))
26                 free_user(up, flags);
27         else
28 -               local_irq_restore(flags);
29 +               local_irq_restore_nort(flags);
30  }
31  
32  struct user_struct *alloc_uid(kuid_t uid)
33 -- 
34 2.7.4
35