Skip to content

Commit

Permalink
softirq: remove initialization of static per-cpu variable
Browse files Browse the repository at this point in the history
Signed-off-by: Vegard Nossum <vegard.nossum@gmail.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
  • Loading branch information
Vegard Nossum authored and Ingo Molnar committed Jun 18, 2008
1 parent 9583f3d commit 4620b49
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions kernel/softirq.c
Original file line number Diff line number Diff line change
Expand Up @@ -359,10 +359,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)
{
Expand Down

0 comments on commit 4620b49

Please sign in to comment.