浏览代码

softirq: remove initialization of static per-cpu variable

Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Vegard Nossum 17 年之前
父节点
当前提交
4620b49f76
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      kernel/softirq.c

+ 2 - 4
kernel/softirq.c

@@ -359,10 +359,8 @@ struct tasklet_head
 	struct tasklet_struct **tail;
 	struct tasklet_struct **tail;
 };
 };
 
 
-/* Some compilers disobey section attribute on statics when not
-   initialized -- RR */
-static DEFINE_PER_CPU(struct tasklet_head, tasklet_vec) = { NULL };
-static DEFINE_PER_CPU(struct tasklet_head, tasklet_hi_vec) = { NULL };
+static DEFINE_PER_CPU(struct tasklet_head, tasklet_vec);
+static DEFINE_PER_CPU(struct tasklet_head, tasklet_hi_vec);
 
 
 void __tasklet_schedule(struct tasklet_struct *t)
 void __tasklet_schedule(struct tasklet_struct *t)
 {
 {