[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Kevin O'Connor
On Tue, Jan 14, 2020 at 06:10:43PM +0100, Laszlo Ersek wrote: > On 01/14/20 10:25, Gerd Hoffmann wrote: > > Call find_prio("HALT") only once, on first is_bootprio_strict() call. > > Store the result in a variable and reuse it on subsequent calls. > > > > Signed-off-by: Gerd Hoffmann > > --- > >

[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Laszlo Ersek
On 01/14/20 10:25, Gerd Hoffmann wrote: > Call find_prio("HALT") only once, on first is_bootprio_strict() call. > Store the result in a variable and reuse it on subsequent calls. > > Signed-off-by: Gerd Hoffmann > --- > src/boot.c | 6 +- > 1 file changed, 5 insertions(+), 1 deletion(-) >

[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Philippe Mathieu-Daudé
On 1/14/20 10:25 AM, Gerd Hoffmann wrote: Call find_prio("HALT") only once, on first is_bootprio_strict() call. Store the result in a variable and reuse it on subsequent calls. Signed-off-by: Gerd Hoffmann Reviewed-by: Philippe Mathieu-Daudé --- src/boot.c | 6 +- 1 file changed, 5

[SeaBIOS] Re: [PATCH 1/3] boot: cache HALT priority

2020-01-14 Thread Alexey Kirillov
Hi, 14.01.2020, 12:25, "Gerd Hoffmann" : > Call find_prio("HALT") only once, on first is_bootprio_strict() call. > Store the result in a variable and reuse it on subsequent calls. > > Signed-off-by: Gerd Hoffmann Reviewed-by: Alexey Kirillov > --- >  src/boot.c | 6 +- >  1 file changed, 5