<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel.git/arch/powerpc/include/asm/time.h, branch linux-5.10.y</title>
<subtitle>Hosts the 0x221E linux distro kernel.
</subtitle>
<id>https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y</id>
<link rel='self' href='https://git.0xinfinity.dev/distro/kernel.git/atom?h=linux-5.10.y'/>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/'/>
<updated>2020-10-08T10:17:16Z</updated>
<entry>
<title>powerpc/time: Make get_tb() common to PPC32 and PPC64</title>
<updated>2020-10-08T10:17:16Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-01T12:42:44Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=9686e431c683ee7b8aca0f3985c244aee3d9f30d'/>
<id>urn:sha1:9686e431c683ee7b8aca0f3985c244aee3d9f30d</id>
<content type='text'>
mftbu() is always defined now, so the #ifdef can be removed
and replaced by an IS_ENABLED(CONFIG_PPC64) inside the
PPC32 version of get_tb().

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/47e49717d2643169ffcbe5d507f184cf49f0fe95.1601556145.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc/time: Make get_tbl() common to PPC32 and PPC64</title>
<updated>2020-10-08T10:17:16Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-01T12:42:43Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=1156a6285cd38e5a6987ddee3758e7954c56cb3d'/>
<id>urn:sha1:1156a6285cd38e5a6987ddee3758e7954c56cb3d</id>
<content type='text'>
On PPC64, get_tbl() is defined as an alias of get_tb() which return
the result of mftb(). That exactly the same as what the PPC32 version
does. We don't need two versions.

Remove the PPC64 definition of get_tbl() and use the PPC32 version
for both.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/a8eaabb87d69534e533ebac805163e08146e05bd.1601556145.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc/time: Remove get_tbu()</title>
<updated>2020-10-08T10:17:15Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-01T12:42:42Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=e8d5bf30eafc37e31ce68bc7ccf1db970fe3cd04'/>
<id>urn:sha1:e8d5bf30eafc37e31ce68bc7ccf1db970fe3cd04</id>
<content type='text'>
get_tbu() is redundant with mftbu() and is not used anymore.

Remove it.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/1746e2d11ea90c3f45877e1fcc6c79ce96cf6b98.1601556145.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc/time: Avoid using get_tbl() and get_tbu() internally</title>
<updated>2020-10-08T10:17:15Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-01T12:42:41Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=942e89115b588b4b5df86930b5302a5c07b820ba'/>
<id>urn:sha1:942e89115b588b4b5df86930b5302a5c07b820ba</id>
<content type='text'>
get_tbl() is confusing as it returns the content of TBL register
on PPC32 but the concatenation of TBL and TBU on PPC64.

Use mftb() instead.

Do the same with get_tbu() for consistency allthough it's name
is less confusing.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/41573406a4eab98838decaa91649086fef1e6119.1601556145.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc/time: Rename mftbl() to mftb()</title>
<updated>2020-10-08T10:17:15Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-01T12:42:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=15c102153e722cc6e0729764a7068c209a7469cd'/>
<id>urn:sha1:15c102153e722cc6e0729764a7068c209a7469cd</id>
<content type='text'>
On PPC64, we have mftb().
On PPC32, we have mftbl() and an #define mftb() mftbl().

mftb() and mftbl() are equivalent, their purpose is to read the
content of SPRN_TRBL, as returned by 'mftb' simplified instruction.

binutils seems to define 'mftbl' instruction as an equivalent
of 'mftb'.

However in both 32 bits and 64 bits documentation, only 'mftb' is
defined, and when performing a disassembly with objdump, the displayed
instruction is 'mftb'

No need to have two ways to do the same thing with different
names, rename mftbl() to have only mftb().

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/94dc68d3d9ef9eb549796d4b938b6ba0305a049b.1601556145.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc/time: Remove ifdef in get_dec() and set_dec()</title>
<updated>2020-10-08T10:17:14Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-10-01T10:59:19Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=63f9d9df5ed0d4f3a2c0cd08730e1cae1edd11bf'/>
<id>urn:sha1:63f9d9df5ed0d4f3a2c0cd08730e1cae1edd11bf</id>
<content type='text'>
Move SPRN_PIT definition in reg.h.

This allows to remove ifdef in get_dec() and set_dec() and
makes them more readable.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/3c9a6eb0fc040868ac59be66f338d08fd017668d.1601549945.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc: Remove get_tb_or_rtc()</title>
<updated>2020-10-08T10:17:14Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-09-29T06:48:39Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=6601ec1c2ba929430f5585ce7f9d9960b0e0a01d'/>
<id>urn:sha1:6601ec1c2ba929430f5585ce7f9d9960b0e0a01d</id>
<content type='text'>
601 is gone, get_tb_or_rtc() is equivalent to get_tb().

Replace the former by the later.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/3e8a13ee83418630c753c30cb722ae682d5b2d39.1601362098.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc: Remove __USE_RTC()</title>
<updated>2020-10-08T10:17:14Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-09-29T06:48:38Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=a4c5a355422920bcbfe3fd1f01aead2d3a2a820c'/>
<id>urn:sha1:a4c5a355422920bcbfe3fd1f01aead2d3a2a820c</id>
<content type='text'>
Now that PowerPC 601 is gone, __USE_RTC() is never true.

Remove it.

That also leads to removing get_rtc() and get_rtcl()

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/4757e1ed21fe1968c761ae081d1f3d790a9673f8.1601362098.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc: Remove support for PowerPC 601</title>
<updated>2020-10-08T10:17:13Z</updated>
<author>
<name>Christophe Leroy</name>
</author>
<published>2020-09-29T06:48:36Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=8b14e1dff067195dca7a42321771437cb33a99e9'/>
<id>urn:sha1:8b14e1dff067195dca7a42321771437cb33a99e9</id>
<content type='text'>
PowerPC 601 has been retired.

Remove all associated specific code.

CPU_FTRS_PPC601 has CPU_FTR_COHERENT_ICACHE and CPU_FTR_COMMON.

CPU_FTR_COMMON is already present via other CPU_FTRS.
None of the remaining CPU selects CPU_FTR_COHERENT_ICACHE.

So CPU_FTRS_PPC601 can be removed from the possible features,
hence can be removed completely.

Signed-off-by: Christophe Leroy &lt;christophe.leroy@csgroup.eu&gt;
Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/60b725d55e21beec3335175c20b77903ff98284f.1601362098.git.christophe.leroy@csgroup.eu
</content>
</entry>
<entry>
<title>powerpc: Drop old comment about CONFIG_POWER</title>
<updated>2020-07-29T11:08:27Z</updated>
<author>
<name>Michael Ellerman</name>
</author>
<published>2020-07-24T13:17:28Z</published>
<link rel='alternate' type='text/html' href='https://git.0xinfinity.dev/distro/kernel.git/commit/?id=ee36d867b2fefeb6fb6661b27e62e29c9ca5e7e5'/>
<id>urn:sha1:ee36d867b2fefeb6fb6661b27e62e29c9ca5e7e5</id>
<content type='text'>
There's a comment in time.h referring to CONFIG_POWER, which doesn't
exist. That confuses scripts/checkkconfigsymbols.py.

Presumably the comment was referring to a CONFIG_POWER vs CONFIG_PPC,
in which case for CONFIG_POWER we would #define __USE_RTC to 1. But
instead we have CONFIG_PPC_BOOK3S_601, and these days we have
IS_ENABLED().

So the comment is no longer relevant, drop it.

Signed-off-by: Michael Ellerman &lt;mpe@ellerman.id.au&gt;
Link: https://lore.kernel.org/r/20200724131728.1643966-9-mpe@ellerman.id.au
</content>
</entry>
</feed>
