lkml.org 
[lkml]   [2009]   [May]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH 4/5] x86: implement percpu_alloc kernel parameter
    >>> Tejun Heo <tj@kernel.org> 15.05.09 06:28 >>>
    >@@ -395,6 +404,16 @@ out_free_ar:
    > return ret;
    > }
    >
    >+/* for explicit first chunk allocator selection */
    >+static char pcpu_chosen_alloc[16] __initdata;
    >+
    >+static int __init percpu_alloc_setup(char *str)
    >+{
    >+ strncpy(pcpu_chosen_alloc, str, sizeof(pcpu_chosen_alloc) - 1);
    >+ return 0;
    >+}
    >+early_param("percpu_alloc", percpu_alloc_setup);
    >+
    > static inline void setup_percpu_segment(int cpu)
    > {
    > #ifdef CONFIG_X86_32

    Does this really need to be early_param()? setup_per_cpu_areas() runs
    after setup_arch(), which is where the full command line parsing happens.

    Jan



    \
     
     \ /
      Last update: 2009-05-15 10:07    [W:5.299 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site