RE: [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK
From: Keith Packard
Date: Thu Sep 02 2021 - 13:58:42 EST
"Russell King (Oracle)" <linux@xxxxxxxxxxxxxxx> writes:
> I think you're introducing a circular dependency with this for
> certain kernel configurations:
>
> E.g. Have you tried running this with CONFIG_CPU_V6 enabled?
That's very useful feedback -- no, I hadn't ever tried this
configuration (presumably the compiler would have complained).
> #define __my_cpu_offset per_cpu_offset(raw_smp_processor_id())
I've read through the v6 architecture reference manual (again) and
cannot find any place to store either a per_cpu_offset or even a small
processor id, which I didn't find surprising as I would have expected it
to already be used for this purpose.
I'll re-spin the changes making them conditional on !CONFIG_CPU_V6,
unless someone has an idea of how to identify the current core in a
multi-core ARMv6 system.
--
-keith
Attachment:
signature.asc
Description: PGP signature