diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2009-07-21 21:06:05 (GMT) |
---|---|---|
committer | Scott Wood <scottwood@freescale.com> | 2014-04-10 00:18:51 (GMT) |
commit | 65d58f69123315e4bc1a834701d3fa5683ab0b65 (patch) | |
tree | 841f62dee84a952096c5ef37b6f319a8490d148e | |
parent | 986ce3bc56ce1db46b8950f9a8b5d11abe001fa0 (diff) | |
download | linux-fsl-qoriq-65d58f69123315e4bc1a834701d3fa5683ab0b65.tar.xz |
core: Do not disable interrupts on RT in kernel/users.c
Use the local_irq_*_nort variants to reduce latencies in RT. The code
is serialized by the locks. No need to disable interrupts.
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r-- | kernel/user.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/user.c b/kernel/user.c index 5bbb919..2800008 100644 --- a/kernel/user.c +++ b/kernel/user.c @@ -154,11 +154,11 @@ void free_uid(struct user_struct *up) if (!up) return; - local_irq_save(flags); + local_irq_save_nort(flags); if (atomic_dec_and_lock(&up->__count, &uidhash_lock)) free_user(up, flags); else - local_irq_restore(flags); + local_irq_restore_nort(flags); } struct user_struct *alloc_uid(kuid_t uid) |