summaryrefslogtreecommitdiff
path: root/kernel/user.c
diff options
context:
space:
mode:
authorThomas Gleixner <tglx@linutronix.de>2009-07-21 21:06:05 (GMT)
committerScott Wood <scottwood@freescale.com>2015-02-13 22:20:18 (GMT)
commitde01f572460f2c01f62e79ccd80cdb72339f4a7c (patch)
treea166385a5d68382a401ab128d60990ad0b4f5542 /kernel/user.c
parent9c23a00447cf6ef86d56e7eb1b513ab3000259c2 (diff)
downloadlinux-fsl-qoriq-de01f572460f2c01f62e79ccd80cdb72339f4a7c.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>
Diffstat (limited to 'kernel/user.c')
-rw-r--r--kernel/user.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kernel/user.c b/kernel/user.c
index 75774ce..b143217 100644
--- a/kernel/user.c
+++ b/kernel/user.c
@@ -155,11 +155,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)