Skip to content
Commit ae31cea8 authored by Thomas Gleixner's avatar Thomas Gleixner
Browse files

x86/ioperm: Simplify first ioperm() invocation logic



On the first allocation of a task the I/O bitmap needs to be
allocated. After the allocation it is installed as an empty bitmap and
immediately afterwards updated.

Avoid that and just do the initial updates (store bitmap pointer, set TIF
flag and make TSS limit valid) in the update path unconditionally. If the
bitmap was already active this is redundant but harmless.

Preparatory change for later optimizations in the context switch code.

Signed-off-by: default avatarThomas Gleixner <tglx@linutronix.de>
parent b800fc4d
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