Messages in this thread | | | Date | Fri, 11 May 2012 08:52:09 +0800 | From | Alex Shi <> | Subject | Re: [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?
>
| |