aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorSander Vanheule <sander@svanheule.net>2022-02-20 17:17:18 +0100
committerDaniel Golle <daniel@makrotopia.org>2022-02-20 16:23:58 +0000
commit66d8db01cc04f18ccfa63d2e49ed281a6fe66c3c (patch)
tree9b68a1994103aca3d0b20ec1bfe1475b0a0ffa85 /target
parent9db651f4a2b724a18d4b3551b6b35fbcc911a05d (diff)
downloadupstream-66d8db01cc04f18ccfa63d2e49ed281a6fe66c3c.tar.gz
upstream-66d8db01cc04f18ccfa63d2e49ed281a6fe66c3c.tar.bz2
upstream-66d8db01cc04f18ccfa63d2e49ed281a6fe66c3c.zip
realtek: remove debugging code from timer
Remove some (dead) debugging code from the Realtek timer to clean up the sources of this driver. Signed-off-by: Sander Vanheule <sander@svanheule.net>
Diffstat (limited to 'target')
-rw-r--r--target/linux/realtek/files-5.10/arch/mips/kernel/cevt-rtl9300.c18
1 files changed, 3 insertions, 15 deletions
diff --git a/target/linux/realtek/files-5.10/arch/mips/kernel/cevt-rtl9300.c b/target/linux/realtek/files-5.10/arch/mips/kernel/cevt-rtl9300.c
index cbbea7d686..1c8c30de5d 100644
--- a/target/linux/realtek/files-5.10/arch/mips/kernel/cevt-rtl9300.c
+++ b/target/linux/realtek/files-5.10/arch/mips/kernel/cevt-rtl9300.c
@@ -51,18 +51,12 @@ static irqreturn_t rtl9300_timer_interrupt(int irq, void *dev_id)
{
struct rtl9300_clk_dev *rtl_clk = dev_id;
struct clock_event_device *clk = &rtl_clk->clkdev;
-// int cpu = smp_processor_id();
- static atomic_t count = ATOMIC_INIT(0);
- unsigned int c;
- u32 v = readl(rtl_clk->base + RTL9300_TC_INT);
- c = (unsigned int)atomic_inc_return(&count);
+ u32 v = readl(rtl_clk->base + RTL9300_TC_INT);
// Acknowledge the IRQ
v |= RTL9300_TC_INT_IP;
writel(v, rtl_clk->base + RTL9300_TC_INT);
- if (readl(rtl_clk->base + RTL9300_TC_INT) & RTL9300_TC_INT_IP)
- dump_stack();
clk->event_handler(clk);
return IRQ_HANDLED;
@@ -76,10 +70,7 @@ static void rtl9300_clock_stop(void __iomem *base)
// Acknowledge possibly pending IRQ
v = readl(base + RTL9300_TC_INT);
-// if (v & RTL9300_TC_INT_IP)
- writel(v | RTL9300_TC_INT_IP, base + RTL9300_TC_INT);
- if (readl(base + RTL9300_TC_INT) & RTL9300_TC_INT_IP)
- dump_stack();
+ writel(v | RTL9300_TC_INT_IP, base + RTL9300_TC_INT);
}
static void rtl9300_timer_start(void __iomem *base, bool periodic)
@@ -142,10 +133,7 @@ static void rtl9300_clock_setup(void __iomem *base)
// Acknowledge possibly pending IRQ
v = readl(base + RTL9300_TC_INT);
-// if (v & RTL9300_TC_INT_IP)
- writel(v | RTL9300_TC_INT_IP, base + RTL9300_TC_INT);
- if (readl(base + RTL9300_TC_INT) & RTL9300_TC_INT_IP)
- dump_stack();
+ writel(v | RTL9300_TC_INT_IP, base + RTL9300_TC_INT);
// Setup maximum period (for use as clock-source)
writel(0x0fffffff, base + RTL9300_TC_DATA);