Xtensa updates for v7.4

- fix clk reference leak in calibrate_ccount
 - small fixes in comments
 -----BEGIN PGP SIGNATURE-----
 
 iQJHBAABCgAxFiEEK2eFS5jlMn3N6xfYUfnMkfg/oEQFAmrhKF0THGpjbXZia2Jj
 QGdtYWlsLmNvbQAKCRBR+cyR+D+gRGVgEACnNw/CnY6Zl9lhnFeYR62n2mmD/iOX
 dEcXCL3a/11eT20KQN0NNuoQWigSTNAZjFGb9GjLjKwwsKZHVGlnuDIX4iFYSM8i
 NlZ3hit5DM7aYKLQXTd6+dUOHWSokqteey9UPx6QPiNtG8UaPwcvrH8DyYKxmUaH
 36Iv/mqUi5ydHBi/tRZvXYAE1ysTozF/ZLa/NY2o/lzthWqLjZK05cb8PD2NANdg
 lrlp+2QSglChfoNjvYuULcpEtZF3ko7l0teNuTNSzvtfTByqQWob0uMH/tjHk6l2
 jS3+MQM19fVYPp6Gb1eI6vzuezKAtURpM4Hz/PY+vrKaP7BVjofyhFHxAe0cHC3O
 hzqtILbph6ir+UwLRf4rCi8kBl4qZs4ig93Q3t7HwrReho2cyx+rH9HQpFnBn6ac
 1xGbkorYM+DRTUeIUsNlwpXGyqItIMw5RYRjPbVbgGSWy4DM2wPX/ijEWuF79fbI
 IwGPyvRBHy/q9g+15BDHSbRu91dt5IIpWSl4NMZNCLOHztCLeWKHVQVFF6zVFs1C
 w/Nap99zYDahF0XnAGqTqm1DmPHfmVz/I6oX1LG2ABO5UXaoC4SHrA4+pFj0SSC4
 qmNItjru3AgqWG758wZMkQrGLNg0t8DGZeeb3TERGJK8XpaB0YBs2O08u8OzSI2b
 Ounoy9rJNDc+/w==
 =ru2V
 -----END PGP SIGNATURE-----

Merge tag 'xtensa-20261027' of https://github.com/jcmvbkbc/linux-xtensa

Pull xtensa updates from Max Filippov:

 - fix clk reference leak in calibrate_ccount

 - small fixes in comments

* tag 'xtensa-20261027' of https://github.com/jcmvbkbc/linux-xtensa:
  xtensa: time: Fix clk reference leak in calibrate_ccount()
  xtensa: fix typos in comments
  xtensa: atomics: drop kernel-doc comments
This commit is contained in:
Linus Torvalds 2026-10-27 15:09:02 -10:00
commit 65ba8f34ec
6 changed files with 5 additions and 17 deletions

View File

@ -37,21 +37,8 @@
* where no register reference will cause an overflow.
*/
/**
* atomic_read - read atomic variable
* @v: pointer of type atomic_t
*
* Atomically reads the value of @v.
*/
#define arch_atomic_read(v) READ_ONCE((v)->counter)
/**
* atomic_set - set atomic variable
* @v: pointer of type atomic_t
* @i: required value
*
* Atomically sets the value of @v to @i.
*/
#define arch_atomic_set(v,i) WRITE_ONCE((v)->counter, (i))
#if XCHAL_HAVE_EXCLUSIVE

View File

@ -96,7 +96,7 @@
#define MADV_HUGEPAGE 14 /* Worth backing with hugepages */
#define MADV_NOHUGEPAGE 15 /* Not worth backing with hugepages */
#define MADV_DONTDUMP 16 /* Explicity exclude from the core dump,
#define MADV_DONTDUMP 16 /* Explicitly exclude from the core dump,
overrides the coredump filter bits */
#define MADV_DODUMP 17 /* Clear the MADV_NODUMP flag */

View File

@ -1671,7 +1671,7 @@ ENTRY(fast_second_level_miss)
* This allows to map the three most common regions to three different
* DTLBs:
* 0,1 -> way 7 program (0040.0000) and virtual (c000.0000)
* 2 -> way 8 shared libaries (2000.0000)
* 2 -> way 8 shared libraries (2000.0000)
* 3 -> way 0 stack (3000.0000)
*/

View File

@ -152,6 +152,7 @@ static void __init calibrate_ccount(void)
of_node_put(cpu);
if (!IS_ERR(clk)) {
ccount_freq = clk_get_rate(clk);
clk_put(clk);
return;
} else {
pr_warn("%s: CPU input clock not found\n",

View File

@ -21,7 +21,7 @@
* use a first-level dispatch table to dispatch the exception to a registered
* fast handler or the default handler, if no fast handler was registered.
* The default handler sets up a C-stack and dispatches the exception to a
* registerd C handler in the second-level dispatch table.
* registered C handler in the second-level dispatch table.
*
* Fast handler entry condition:
*

View File

@ -43,7 +43,7 @@ void __init bootmem_init(void)
* accounting doesn't work for pages below that address.
*
* If PHYS_OFFSET is zero reserve page at address 0:
* successfull allocations should never return NULL.
* successful allocations should never return NULL.
*/
memblock_reserve(0, PHYS_OFFSET ? PHYS_OFFSET : 1);