]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
x86: apic: Allow noop operations to be called almost at any time
authorCyrill Gorcunov <gorcunov@openvz.org>
Thu, 15 Oct 2009 15:04:16 +0000 (19:04 +0400)
committerIngo Molnar <mingo@elte.hu>
Thu, 15 Oct 2009 15:26:53 +0000 (17:26 +0200)
commitf88f2b4fdb1e098433ad2b005b6f7353f7268ce1
treee69f977869267f1220ffa533c07677faba5552fc
parent9636bc0555e3f383c120ddcffe4b7c5c58a10b1a
x86: apic: Allow noop operations to be called almost at any time

As only apic noop is used we allow to use almost any operation
caller wants (and which of them noop driver supports of
course).

Initially it was reported by Ingo Molnar that apic noop
issue a warning for pkg id (which is actually false positive
and should be eliminated).

So we save checking (and warning issue) for read/write
operations while allow any other ops to be freely used.

Also:
 - fix noop_cpu_to_logical_apicid, it should be 0.
 - rename noop_default_phys_pkg_id to noop_phys_pkg_id
   (we use default_ prefix for more general routines
    in apic subsystem).

Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Cc: Yinghai Lu <yinghai@kernel.org>
Cc: Maciej W. Rozycki <macro@linux-mips.org>
LKML-Reference: <20091015150416.GC5331@lenovo>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/apic/apic.c
arch/x86/kernel/apic/apic_noop.c