Received: by 10.192.165.156 with SMTP id m28csp1717056imm; Tue, 17 Apr 2018 04:27:05 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/bPSML6O/cxE3/Xs8Qs4q7e9/9G/M1/eYKqfHIKvm5etQWSi2OAFo/m9Z6qIlkSMeoEyYu X-Received: by 10.98.68.86 with SMTP id r83mr1612140pfa.145.1523964425489; Tue, 17 Apr 2018 04:27:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523964425; cv=none; d=google.com; s=arc-20160816; b=vj76ZN1mH0cl+Fjn3RyWeLyaePmddjkIRHTu5+uixMBXuPqOMjNYhOnlNNRylxZIeB AGJ6HJa7ob6lKEzC473cqByKQSAiu3f1+bDohrIBnItE0DM6PkA+YZDo6EE4N0T4Mwsf 1v7ntGdT8H4FkP1qs7H5L73GpNj6yAoH99DGy1T+ZxNL1J4DwmPJ+0dHTzLbaBZMLnpK JMv3bD6wBBvirwuQ5CHpgBeM3qpLdXzgPru4/27yykfdhjNtvolBPSR6jI8g1D9wWfh/ JBkgrQxqh/mqILhZtCKSS4uHo8GdlsgdecczjWXVT7Ly6FMg2Beo2AUH1lIaUrEiM6/D Yeyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :arc-authentication-results; bh=58VSmaHVmZpXSGpPZMKtxE2zR6WFUSeShzY+eegyx0U=; b=dR78jik6jTTvdWQJlUA9sxZGPL14MA++B0We+e/QsmGIZVMWCoHmETZPl/OqarEXjb CbUNqLKfE/a9bR95RvUgkEJ5qyOp+7A6kPKVlITyIXF6izGBdITiUzR6Zx3jqg88E69D b1PFjoxjNRTKZlMlvmVLFjuFPxKGS4m6ZFTDz+VT950WVoqEufn09mbDNRP51FcUFZux LiRoTV4FKUbt7ZRCqTFT9lizSaYscNPyRzvD+xHaqKmqky1PqA0J19YbXjG3aUWAK4Hn g4dJwp9jzqA5sK+pCV3sfkBcvOIXiYYM4rtaHMzqlEsVnFSkb2xdHSZIVdZ0RzexrJgr Fhxw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id h132si13043512pfe.52.2018.04.17.04.26.51; Tue, 17 Apr 2018 04:27:05 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752770AbeDQLZk convert rfc822-to-8bit (ORCPT + 99 others); Tue, 17 Apr 2018 07:25:40 -0400 Received: from mail-wr0-f193.google.com ([209.85.128.193]:34208 "EHLO mail-wr0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752254AbeDQLZi (ORCPT ); Tue, 17 Apr 2018 07:25:38 -0400 Received: by mail-wr0-f193.google.com with SMTP id d19so34485624wre.1; Tue, 17 Apr 2018 04:25:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ip/h/Zdn70YVgoGS/2/kPI+EYDQ5dJZXH4Yrqs+hT2g=; b=j/zi58JS6TUkabPQqVsipfxy96tqYDSTAHpBzFjeyUgm+GLQsp+7mwHxZ8+QWHgAQi OV2tmLBMkIOarioPCBYqwk4rsHhYCivRYmQ+fpF+U6Vjbm6AwLU4nERDUwSimmHmDNof cqfb4QRefKZrJc8PrykeSvHy/w8yiZATyyg1ebi3ebMyPM4lJDroPFzou7xQjxGxS9CC yt699TpGj+OLb0e3qPVJpjsjmbP9ZaLxvXweiOP0edvDlyEqqB7WRtIoV0swMs40obg1 ZdCr62wWEocdjCZd1Dhn5tZ7Eigjb3TNq8c1lnllr6xEphBjRZXvCbkPMbzfqRIyAtO2 1vtw== X-Gm-Message-State: ALQs6tCZVdrkM2S4f9ktoxyI9zShyanmn1Ra6jZnAwYJ20NTXpihmuOC kbRb53tgPuxu0eiASweSKmG1CaKR X-Received: by 10.80.137.149 with SMTP id g21mr1215542edg.25.1523964337074; Tue, 17 Apr 2018 04:25:37 -0700 (PDT) Received: from mail-wr0-f177.google.com (mail-wr0-f177.google.com. [209.85.128.177]) by smtp.gmail.com with ESMTPSA id l9sm8650280edk.9.2018.04.17.04.25.36 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 17 Apr 2018 04:25:36 -0700 (PDT) Received: by mail-wr0-f177.google.com with SMTP id v60so30587937wrc.7; Tue, 17 Apr 2018 04:25:36 -0700 (PDT) X-Received: by 10.223.225.194 with SMTP id l2mr786989wri.148.1523964336346; Tue, 17 Apr 2018 04:25:36 -0700 (PDT) MIME-Version: 1.0 Received: by 10.223.142.19 with HTTP; Tue, 17 Apr 2018 04:25:15 -0700 (PDT) In-Reply-To: <20180417111737.6dous6eiuvjn33jf@flea> References: <20180416215032.5023-1-mylene.josserand@bootlin.com> <20180416215032.5023-2-mylene.josserand@bootlin.com> <20180417111737.6dous6eiuvjn33jf@flea> From: Chen-Yu Tsai Date: Tue, 17 Apr 2018 19:25:15 +0800 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v6 01/11] ARM: sunxi: smp: Move assembly code into a file To: Maxime Ripard Cc: =?UTF-8?Q?Myl=C3=A8ne_Josserand?= , Russell King , Marc Zyngier , Mark Rutland , Rob Herring , Simon , Geert Uytterhoeven , Magnus Damm , "open list:ARM/SHMOBILE ARM..." , devicetree , LABBE Corentin , Quentin Schulz , Thomas Petazzoni , linux-arm-kernel , linux-kernel Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 17, 2018 at 7:17 PM, Maxime Ripard wrote: > On Tue, Apr 17, 2018 at 11:12:41AM +0800, Chen-Yu Tsai wrote: >> On Tue, Apr 17, 2018 at 5:50 AM, Mylène Josserand >> wrote: >> > Move the assembly code for cluster cache enabling and resuming >> > into an assembly file instead of having it directly in C code. >> > >> > Remove the CFLAGS because we are using the ARM directive "arch" >> > instead. >> > >> > Signed-off-by: Mylène Josserand >> > --- >> > arch/arm/mach-sunxi/Makefile | 4 +-- >> > arch/arm/mach-sunxi/headsmp.S | 80 +++++++++++++++++++++++++++++++++++++++++ >> > arch/arm/mach-sunxi/mc_smp.c | 82 +++---------------------------------------- >> > 3 files changed, 85 insertions(+), 81 deletions(-) >> > create mode 100644 arch/arm/mach-sunxi/headsmp.S >> >> I'm still not convinced about this whole "move ASM to separate >> file" thing, especially now that you aren't actually adding any >> sunxi-specific ASM code beyond a simple function call. >> >> Could you drop this for now? > > I'd really like to have this merged actually. There's a significant > readibility improvement, so even if there's no particular functional > improvement, I'd still call it a win. What parts do you consider hard to read? The extra quotes? Trailing newline? Or perhaps the __stringify bits? ChenYu