• Thomas Gleixner's avatar
    x86/ioperm: Simplify first ioperm() invocation logic · ae31cea8
    Thomas Gleixner authored
    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>
    ae31cea8
ioport.c 3.38 KB