Rev 3022 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3022 | Rev 4055 | ||
---|---|---|---|
Line 49... | Line 49... | ||
49 | { |
49 | { |
50 | unsigned int i; |
50 | unsigned int i; |
51 | 51 | ||
52 | tasklet_list = malloc(sizeof(tasklet_descriptor_t *) * config.cpu_count, 0); |
52 | tasklet_list = malloc(sizeof(tasklet_descriptor_t *) * config.cpu_count, 0); |
53 | if (!tasklet_list) |
53 | if (!tasklet_list) |
54 | panic("Error initializing tasklets"); |
54 | panic("Error initializing tasklets."); |
55 | 55 | ||
56 | for (i = 0; i < config.cpu_count; i++) |
56 | for (i = 0; i < config.cpu_count; i++) |
57 | tasklet_list[i] = NULL; |
57 | tasklet_list[i] = NULL; |
58 | 58 | ||
59 | spinlock_initialize(&tasklet_lock, "tasklet_lock"); |
59 | spinlock_initialize(&tasklet_lock, "tasklet_lock"); |