]> git.ipfire.org Git - thirdparty/linux.git/commit
powerpc/time: Expose boot_tb via accessor
authorAboorva Devarajan <aboorvad@linux.ibm.com>
Mon, 15 Sep 2025 10:29:41 +0000 (15:59 +0530)
committerMadhavan Srinivasan <maddy@linux.ibm.com>
Mon, 22 Sep 2025 09:18:56 +0000 (14:48 +0530)
commit2dc019ca39347f76891d34a992b67258078aa45d
treec6a8c7f110029ab19b47d9847fbffb8c4c4a7bc8
parent9316512b717f6f25c4649b3fdb0a905b6a318e9f
powerpc/time: Expose boot_tb via accessor

- Define accessor function get_boot_tb() to safely return boot_tb value,
  this is only needed when running in SPLPAR environments, so the
  accessor is built conditionally under CONFIG_PPC_SPLPAR.

- Tag boot_tb as __ro_after_init since it is written once at initialized
  and never updated afterwards.

Signed-off-by: Aboorva Devarajan <aboorvad@linux.ibm.com>
Tested-by: Tejas Manhas <tejas05@linux.ibm.com>
Tested-by: Venkat Rao Bagalkote <venkat88@linux.ibm.com>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Link: https://patch.msgid.link/20250915102947.26681-2-atrajeev@linux.ibm.com
arch/powerpc/include/asm/time.h
arch/powerpc/kernel/time.c