[CRIU] [PATCH 07/12] cpuinfo: Drop cpu_set_feature from exporting
Cyrill Gorcunov
gorcunov at openvz.org
Tue Sep 30 10:18:50 PDT 2014
It's redundant, should be cpu local.
Signed-off-by: Cyrill Gorcunov <gorcunov at openvz.org>
---
arch/aarch64/cpu.c | 4 ----
arch/arm/cpu.c | 4 ----
arch/x86/cpu.c | 2 +-
arch/x86/include/asm/cpu.h | 1 -
include/cpu.h | 1 -
5 files changed, 1 insertion(+), 11 deletions(-)
diff --git a/arch/aarch64/cpu.c b/arch/aarch64/cpu.c
index 6f4b5284a377..fc1b73e6dd5f 100644
--- a/arch/aarch64/cpu.c
+++ b/arch/aarch64/cpu.c
@@ -3,10 +3,6 @@
#include "cpu.h"
-void cpu_set_feature(unsigned int feature)
-{
-}
-
bool cpu_has_feature(unsigned int feature)
{
return false;
diff --git a/arch/arm/cpu.c b/arch/arm/cpu.c
index 6f4b5284a377..fc1b73e6dd5f 100644
--- a/arch/arm/cpu.c
+++ b/arch/arm/cpu.c
@@ -3,10 +3,6 @@
#include "cpu.h"
-void cpu_set_feature(unsigned int feature)
-{
-}
-
bool cpu_has_feature(unsigned int feature)
{
return false;
diff --git a/arch/x86/cpu.c b/arch/x86/cpu.c
index 47f41fc1fcb7..82d8e13647d1 100644
--- a/arch/x86/cpu.c
+++ b/arch/x86/cpu.c
@@ -30,7 +30,7 @@ const char * const x86_cap_flags[NCAPINTS_BITS] = {
static DECLARE_BITMAP(cpu_features, NCAPINTS_BITS);
-void cpu_set_feature(unsigned int feature)
+static void cpu_set_feature(unsigned int feature)
{
if (likely(feature < NCAPINTS_BITS))
set_bit(feature, cpu_features);
diff --git a/arch/x86/include/asm/cpu.h b/arch/x86/include/asm/cpu.h
index de6d2dd4054e..5914c5c2b417 100644
--- a/arch/x86/include/asm/cpu.h
+++ b/arch/x86/include/asm/cpu.h
@@ -178,7 +178,6 @@ static inline unsigned int cpuid_edx(unsigned int op)
extern const char * const x86_cap_flags[NCAPINTS_BITS];
-extern void cpu_set_feature(unsigned int feature);
extern bool cpu_has_feature(unsigned int feature);
extern int cpu_init(void);
diff --git a/include/cpu.h b/include/cpu.h
index 08220cfa7616..aa3516b97f97 100644
--- a/include/cpu.h
+++ b/include/cpu.h
@@ -3,7 +3,6 @@
#include "asm/cpu.h"
-extern void cpu_set_feature(unsigned int feature);
extern bool cpu_has_feature(unsigned int feature);
extern int cpu_init(void);
--
1.9.3
More information about the CRIU
mailing list