Skip to contentSkip to conversation

sched: mark sched_create_sysfs_power_savings_entries() as __init

PATCH Superseded Li Zefan 2 participants 3 messages Jan 5, 2009

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/1 sched: mark sched_create_sysfs_power_savings_entries() as __init

Impact: cleanup

The only caller is cpu_dev_init() which is marked as __init.

---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched.c +1 -1
index 545c6fc..9a8e296 100644
@@ -8060,7 +8060,7 @@ static SYSDEV_CLASS_ATTR(sched_smt_power_savings, 0644,
 		   sched_smt_power_savings_store);
 #endif
 
-int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls)
+int __init sched_create_sysfs_power_savings_entries(struct sysdev_class *cls)
 {
 	int err = 0;
 
Signature · 1 line
1.5.4.rc3
author
#1 lore raw

PATCH RESEND 1/1 sched: mark sched_create_sysfs_power_savings_entries() as __init

Impact: cleanup

The only caller is cpu_dev_init() which is marked as __init.

---

resend with SOB added

---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/sched.c +1 -1
index 545c6fc..9a8e296 100644
@@ -8060,7 +8060,7 @@ static SYSDEV_CLASS_ATTR(sched_smt_power_savings, 0644,
 		   sched_smt_power_savings_store);
 #endif
 
-int sched_create_sysfs_power_savings_entries(struct sysdev_class *cls)
+int __init sched_create_sysfs_power_savings_entries(struct sysdev_class *cls)
 {
 	int err = 0;
 

-- 1.5.4.rc3

Applied
#2 lore raw
Quoted 4 lines · Li Zefan

Impact: cleanup

The only caller is cpu_dev_init() which is marked as __init.

Quoted 8 lines

---

resend with SOB added

---
 kernel/sched.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

applied to tip/sched/urgent, thanks!

Ingo