projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
UAPI: Partition the header include path sets and add uapi/ header directories
[GitHub/mt8127/android_kernel_alcatel_ttab.git]
/
arch
/
x86
/
kernel
/
cpu
/
mkcapflags.pl
diff --git
a/arch/x86/kernel/cpu/mkcapflags.pl
b/arch/x86/kernel/cpu/mkcapflags.pl
index c7b3fe2d72e0f71b94577fde23622a8797eca941..091972ef49de830c32f7547753d9ad5f5ec01f01 100644
(file)
--- a/
arch/x86/kernel/cpu/mkcapflags.pl
+++ b/
arch/x86/kernel/cpu/mkcapflags.pl
@@
-8,7
+8,10
@@
open(IN, "< $in\0") or die "$0: cannot open: $in: $!\n";
open(OUT, "> $out\0") or die "$0: cannot create: $out: $!\n";
open(IN, "< $in\0") or die "$0: cannot open: $in: $!\n";
open(OUT, "> $out\0") or die "$0: cannot create: $out: $!\n";
-print OUT "#include <asm/cpufeature.h>\n\n";
+print OUT "#ifndef _ASM_X86_CPUFEATURE_H\n";
+print OUT "#include <asm/cpufeature.h>\n";
+print OUT "#endif\n";
+print OUT "\n";
print OUT "const char * const x86_cap_flags[NCAPINTS*32] = {\n";
%features = ();
print OUT "const char * const x86_cap_flags[NCAPINTS*32] = {\n";
%features = ();