lkml.org 
[lkml]   [2020]   [Mar]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] arm64/kernel: Simplify __cpu_up() by bailing out early
On Mon, Mar 02, 2020 at 01:03:40PM +1100, Gavin Shan wrote:
> The function __cpu_up() is invoked to bring up the target CPU through
> the backend, PSCI for example. The nested if statements won't be needed
> if we bail out early on the following two conditions where the status
> won't be checked. The code looks simplified in that case.
>
> * Error returned from the backend (e.g. PSCI)
> * The target CPU has been marked as onlined
>
> Signed-off-by: Gavin Shan <gshan@redhat.com>

Queued for 5.7. Thanks.

--
Catalin

\
 
 \ /
  Last update: 2020-03-17 19:32    [W:0.174 / U:0.604 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site