lkml.org 
[lkml]   [2012]   [May]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v4 7/7] x86/tlb: add tlb_flushall_factor into sysfs for user testing/tuning
>> +#ifdef CONFIG_DEBUG_TLBFLUSH

>> +static ssize_t __tlb_flushall_factor_store(const char *buf,
>> + size_t count, int smt)
>> +{
>> + short factor = 0;
>> +
>> + if (sscanf(buf, "%hd", &factor) != 1)
>> + return -EINVAL;
>
> This means only single-digit factors, right?


No, you can try '32' '16' etc. not a 'single-digit'.

>
> Why not use kstrtoul?


any advantage of this?

>




\
 
 \ /
  Last update: 2012-05-11 03:21    [W:0.074 / U:0.700 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site