lkml.org 
[lkml]   [2009]   [Jun]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/2] sched: use slab in cpupri_init()
> @@ -163,9 +167,7 @@ int __init_refok cpupri_init(struct cpupri *cp, bool bootmem)

so the __init_refok tag can be removed, no?

>
> spin_lock_init(&vec->lock);
> vec->count = 0;
> - if (bootmem)
> - alloc_bootmem_cpumask_var(&vec->mask);
> - else if (!zalloc_cpumask_var(&vec->mask, GFP_KERNEL))
> + if (!zalloc_cpumask_var(&vec->mask, gfp))
> goto cleanup;
> }
>


\
 
 \ /
  Last update: 2009-06-11 08:11    [W:0.057 / U:0.272 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site