mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] hexagon: time: prevent release of not requested region
@ 2026-11-26 10:49 Thomas Fourier
  0 siblings, 0 replies; only message in thread
From: Thomas Fourier @ 2026-11-26 10:49 UTC (permalink / raw)
  Cc: Thomas Fourier, Brian Cain, Thomas Gleixner,
	open list:QUALCOMM HEXAGON ARCHITECTURE, open list

time_init_deferred() calls release_mem_region() on region
rtos_timer_device.resource which is rtos_timer_resources which is
statically defined.

Drop the release_mem_region().

Signed-off-by: Thomas Fourier <fourier.thomas@gmail.com>
---
 arch/hexagon/kernel/time.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/arch/hexagon/kernel/time.c b/arch/hexagon/kernel/time.c
index 05c5d6c96d96..b6d844b2c1ef 100644
--- a/arch/hexagon/kernel/time.c
+++ b/arch/hexagon/kernel/time.c
@@ -175,9 +175,6 @@ static void __init time_init_deferred(void)
 	/*  ioremap here means this has to run later, after paging init  */
 	rtos_timer = ioremap(resource->start, resource_size(resource));
 
-	if (!rtos_timer) {
-		release_mem_region(resource->start, resource_size(resource));
-	}
 	clocksource_register_khz(&hexagon_clocksource, pcycle_freq_mhz * 1000);
 
 	/*  Note: the sim generic RTOS clock is apparently really 18750Hz  */
-- 
2.53.0


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-11-26 10:49 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-26 10:49 [PATCH] hexagon: time: prevent release of not requested region Thomas Fourier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®