Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
xcap
xcap-capability-linux
Commits
fe7414a2
Commit
fe7414a2
authored
Sep 26, 2006
by
Andi Kleen
Committed by
Andi Kleen
Sep 26, 2006
Browse files
[PATCH] Use BUILD_BUG_ON in apic.c build sanity checking
Makes code a little shorter. Signed-off-by:
Andi Kleen
<
ak@suse.de
>
parent
19f03ffe
Changes
1
Hide whitespace changes
Inline
Side-by-side
arch/x86_64/kernel/apic.c
View file @
fe7414a2
...
...
@@ -265,8 +265,6 @@ void __init sync_Arb_IDs(void)
|
APIC_DM_INIT
);
}
extern
void
__error_in_apic_c
(
void
);
/*
* An initial setup of the virtual wire mode.
*/
...
...
@@ -313,8 +311,7 @@ void __cpuinit setup_local_APIC (void)
value
=
apic_read
(
APIC_LVR
);
if
((
SPURIOUS_APIC_VECTOR
&
0x0f
)
!=
0x0f
)
__error_in_apic_c
();
BUILD_BUG_ON
((
SPURIOUS_APIC_VECTOR
&
0x0f
)
!=
0x0f
);
/*
* Double-check whether this APIC is really registered.
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment