Skip to contentSkip to conversation

softirq: remove initialization of static per-cpu variable

PATCH Applied Vegard Nossum 2 participants 2 messages Jun 12, 2008 – Jun 18, 2008 Kernel janitors

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 softirq: remove initialization of static per-cpu variable

From: Vegard Nossum <[email protected]>
Date: Thu, 12 Jun 2008 22:10:36 +0200
Subject: [PATCH] softirq: remove initialization of static per-cpu variable

---
 kernel/softirq.c |    6 ++----
 1 files changed, 2 insertions(+), 4 deletions(-)
kernel/softirq.c +2 -4
index 36e0617..6d28525 100644
@@ -360,10 +360,8 @@ struct tasklet_head
 	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)
 {
Signature · 1 line
1.5.4.1