Re: [PATCH v1] x86/mtrr: Convert to use match_string() helper

2018-05-13 Thread Andy Shevchenko
On Sun, May 13, 2018 at 10:23 PM, Thomas Gleixner wrote: > On Fri, 4 May 2018, Andy Shevchenko wrote: > >> The new helper returns index of the matching string in an array. > > new helper? match_string() is in tree for 2 years. Old template. >> We are going to use it here. > > Are we going to use

Re: [PATCH v1] x86/mtrr: Convert to use match_string() helper

2018-05-13 Thread Thomas Gleixner
On Fri, 4 May 2018, Andy Shevchenko wrote: > The new helper returns index of the matching string in an array. new helper? match_string() is in tree for 2 years. > We are going to use it here. Are we going to use it ? When? "Replace the open coded array lookup." or something like that would be

[PATCH v1] x86/mtrr: Convert to use match_string() helper

2018-05-03 Thread Andy Shevchenko
The new helper returns index of the matching string in an array. We are going to use it here. Signed-off-by: Andy Shevchenko --- arch/x86/kernel/cpu/mtrr/if.c | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/arch/x86/kernel/cpu/mtrr/if.c b/arch/x86/kern