Skip to contentSkip to conversation

intel_idle: make intel_idle_state_table_update() static

PATCH In review Jisheng Zhang 2 participants 2 messages Mar 22, 2016 – Mar 23, 2016 Intel idle driver

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 intel_idle: make intel_idle_state_table_update() static

intel_idle_state_table_update() is only used internally in intel_idle, so make it static.

---
 drivers/idle/intel_idle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/idle/intel_idle.c +1 -1
index cd4510a..2e0341e 100644
@@ -1001,7 +1001,7 @@ static void intel_idle_cpuidle_devices_uninit(void)
  * Currently used to access tuned IVT multi-socket targets
  * Assumption: num_sockets == (max_package_num + 1)
  */
-void intel_idle_state_table_update(void)
+static void intel_idle_state_table_update(void)
 {
 	/* IVT uses a different table for 1-2, 3-4, and > 4 sockets */
 	if (boot_cpu_data.x86_model == 0x3e) { /* IVT */
Signature · 1 line
2.8.0.rc3
reviewer
#1 lore raw

Thank you Jisheng, for pointing this out.

your patch conflicts with a patch already in-flight, so I'll not apply it directly,
but I will fix this problem straight away.

thanks,
Len Brown, Intel Open Source Technology Center

Quoted 24 lines · Jisheng Zhang

intel_idle_state_table_update() is only used internally in intel_idle, so make it static.

---
 drivers/idle/intel_idle.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/idle/intel_idle.c +1 -2
index cd4510a..2e0341e 100644
@@ -1001,7 +1001,7 @@ static void intel_idle_cpuidle_devices_uninit(void)
  * Currently used to access tuned IVT multi-socket targets
  * Assumption: num_sockets == (max_package_num + 1)
  */
-void intel_idle_state_table_update(void)
+static void intel_idle_state_table_update(void)
 {
        /* IVT uses a different table for 1-2, 3-4, and > 4 sockets */
        if (boot_cpu_data.x86_model == 0x3e) { /* IVT */
--

2.8.0.rc3

Signature · 1 line
Len Brown, Intel Open Source Technology Center