Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp15445imm; Wed, 29 Aug 2018 12:37:40 -0700 (PDT) X-Google-Smtp-Source: ANB0VdbiFnPpSo3lwmp7rskU8vCXJl/kfEbe+pEp0vzpnALh847MSBTeT+yPRVXNiIxll388pcAd X-Received: by 2002:a63:1865:: with SMTP id 37-v6mr2138470pgy.313.1535571460448; Wed, 29 Aug 2018 12:37:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535571460; cv=none; d=google.com; s=arc-20160816; b=z75AIti+EzhztEFtS/Uw6RYcu7pnRzGdqMkodcg5kwCWgM+ZbC3MLFxX79p5yFOgw/ GFsj0gfe2ibutbD4YzcH/WF73wgEeT4eFMufGSOKjOCxhJ1b7ie/zXaggYh7onlWZIwZ UzMyPx8KH5ECuvi2ds02cNg4AhzbmfpnfHnKoKAyzER7v0Fvw+OXeaPuXSpsTp0eRKdQ AErmugdq1rNQrsajGxqkRIDuDoEZxVsiFa2eNYkEi3wVEadMndIPaWNlawtGM300Tg60 n0ReNTT+ftOFrQA2AwOPUnZmXzgnP4I14+NRj92Gb8MXdqUb0YLIkHF3TiGNdYpBA+gb /ehg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:message-id :in-reply-to:date:references:subject:cc:to:from :arc-authentication-results; bh=KE3b4ZenPiWkxUbxyvvFRTW8oBeiCpBrsawKGOLpFk0=; b=0C/dod/7xjkVaDMT43LxKzTlMa55SVJz2BVWYo6x9JPGlgTzX3/6G9PUhgoXydAx4o Mtuh3EFeY/gziv9NvU9J5I8HvGWTLgzSpsEGkuKfes9KCrMGx5Py3G1ljFAsNoD8RIls zejMlQPuva8tftDYMkxFQDA5MTbZ0Jc8XNXEp/CinEW6Kfs9EsRtZk9kxRot7Wl9IcW8 zD+C6am/KMUz8DdtcnhXx3NwVlTmSd8Jlx8rVpehLqsZtFX1xnt9Ll9CMEe9aRq583Ho 6r/1YAv6nkOi2xemQF6RDwIbhqKebax48jG777EDxZbsOvjK9dw5W3JZnnz5l8IEUpIv 4YgQ== 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id d2-v6si4481589pla.307.2018.08.29.12.37.24; Wed, 29 Aug 2018 12:37:40 -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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728328AbeH2Xe3 (ORCPT + 99 others); Wed, 29 Aug 2018 19:34:29 -0400 Received: from mga11.intel.com ([192.55.52.93]:34795 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727392AbeH2Xe3 (ORCPT ); Wed, 29 Aug 2018 19:34:29 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga102.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 29 Aug 2018 12:36:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.53,304,1531810800"; d="scan'208";a="66959349" Received: from tassilo.jf.intel.com (HELO tassilo.localdomain) ([10.7.201.126]) by fmsmga008.fm.intel.com with ESMTP; 29 Aug 2018 12:35:59 -0700 Received: by tassilo.localdomain (Postfix, from userid 1000) id 112E2301B8B; Wed, 29 Aug 2018 12:35:59 -0700 (PDT) From: Andi Kleen To: Pu Wen Cc: tglx@linutronix.de, mingo@redhat.com, hpa@zytor.com, x86@kernel.org, thomas.lendacky@amd.com, bp@alien8.de, pbonzini@redhat.com, linux-kernel@vger.kernel.org, linux-arch@vger.kernel.org Subject: Re: [PATCH v5 01/16] x86/cpu: create Dhyana init file and register new cpu_dev to system References: Date: Wed, 29 Aug 2018 12:35:59 -0700 In-Reply-To: (Pu Wen's message of "Wed, 29 Aug 2018 20:42:49 +0800") Message-ID: <87mut52cf4.fsf@linux.intel.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Pu Wen writes: > Add x86 architecture support for new processor Hygon Dhyana Family 18h. > Rework to create a separated file(arch/x86/kernel/cpu/hygon.c) from the > AMD init one(arch/x86/kernel/cpu/amd.c) to initialize Dhyana CPU. Standard approach would be to move the shared code into a different file and call it from both amd.c and hygon.c instead of duplicating. -Andi