[RFC PATCH 5/6] x86/apic: Make the APIC mode setup earlier for UP system

2017-03-29 Thread Dou Liyang
The SMP-capable system has already enable and setup the APIC mode as soon as possible. Do it for UP system and make the code clear. Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 2 ++ arch/x86/kernel/apic/apic.c | 81

[RFC PATCH 5/6] x86/apic: Make the APIC mode setup earlier for UP system

2017-03-29 Thread Dou Liyang
The SMP-capable system has already enable and setup the APIC mode as soon as possible. Do it for UP system and make the code clear. Signed-off-by: Dou Liyang --- arch/x86/include/asm/apic.h | 2 ++ arch/x86/kernel/apic/apic.c | 81 +