Freezer: make kernel threads nonfreezable by default
[deliverable/linux.git] / drivers / macintosh / windfarm_core.c
index 11ced17f438a8469a39cf303eda067ff9b21193b..e18d265d5d33206f437c00e6bf56a8afaf1a4cea 100644 (file)
@@ -92,6 +92,7 @@ static int wf_thread_func(void *data)
 
        DBG("wf: thread started\n");
 
+       set_freezable();
        while(!kthread_should_stop()) {
                if (time_after_eq(jiffies, next)) {
                        wf_notify(WF_EVENT_TICK, NULL);
@@ -212,7 +213,6 @@ int wf_register_control(struct wf_control *new_ct)
        list_add(&new_ct->link, &wf_controls);
 
        new_ct->attr.attr.name = new_ct->name;
-       new_ct->attr.attr.owner = THIS_MODULE;
        new_ct->attr.attr.mode = 0644;
        new_ct->attr.show = wf_show_control;
        new_ct->attr.store = wf_store_control;
@@ -325,7 +325,6 @@ int wf_register_sensor(struct wf_sensor *new_sr)
        list_add(&new_sr->link, &wf_sensors);
 
        new_sr->attr.attr.name = new_sr->name;
-       new_sr->attr.attr.owner = THIS_MODULE;
        new_sr->attr.attr.mode = 0444;
        new_sr->attr.show = wf_show_sensor;
        new_sr->attr.store = NULL;
This page took 0.024377 seconds and 5 git commands to generate.