RE: [PATCH 0/2]: ARM: Enable THREAD_INFO_IN_TASK

Keith Packard
2021-09-02T17:58:42Z

[-- Attachment #1: Type: text/plain, Size: 856 bytes --]

"Russell King (Oracle)" <linux@armlinux.org.uk> 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 #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 832 bytes --]