From mboxrd@z Thu Jan 1 00:00:00 1970 From: will.deacon@arm.com (Will Deacon) Date: Thu, 26 Mar 2015 15:13:41 +0000 Subject: [patch v11 13/23] ACPI / processor: Introduce phys_cpuid_t for CPU hardware ID In-Reply-To: <551381CD.5010804@huawei.com> References: <1427205776-5060-1-git-send-email-hanjun.guo@linaro.org> <1427205776-5060-14-git-send-email-hanjun.guo@linaro.org> <20150325172109.GJ14585@localhost> <551381CD.5010804@huawei.com> Message-ID: <20150326151341.GH2805@arm.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org On Thu, Mar 26, 2015 at 03:49:33AM +0000, Hanjun Guo wrote: > On 2015/3/26 1:21, Catalin Marinas wrote: > > On Tue, Mar 24, 2015 at 10:02:46PM +0800, Hanjun Guo wrote: > >> CPU hardware ID (phys_id) is defined as u32 in structure acpi_processor, > >> but phys_id is used as int in acpi processor driver, so it will lead to > >> some inconsistence for the drivers. > >> > >> Furthermore, to cater for ACPI arch ports that implement 64 bits CPU > >> ids a generic CPU physical id type is required. > >> > >> So introduce typedef u32 phys_cpuid_t in a common file, and introduce > >> a macro PHYS_CPUID_INVALID as (phys_cpuid_t)(-1) if it's not defined > >> by other archs, this will solve the inconsistence in acpi processor driver, > >> and will prepare for the ACPI on ARM64 for the 64 bit CPU hardware ID > >> in the following patch. > >> > >> CC: Rafael J Wysocki > >> Suggested-by: Lorenzo Pieralisi > >> Reviewed-by: Grant Likely > >> Acked-by: Sudeep Holla > >> Acked-by: Lorenzo Pieralisi > >> Acked-by: Rafael J. Wysocki > >> Signed-off-by: Catalin Marinas > >> [hj: reworked cpu physid map return codes] > >> Signed-off-by: Hanjun Guo > > BTW, am I still the author of this patch? If yes, it's missing a From: > > line. > > Oops, you should be the author, can Will fix this in his tree? Fixed. Will