sparc32: fix build of pcic
PATCH 1/1 sparc32: fix build of pcic
From 2f007277975e8bce2b9142b28b609d7a4e9a631e Mon Sep 17 00:00:00 2001
From: Sam Ravnborg <[email protected]>
Date: Mon, 16 Apr 2012 21:50:49 +0200
Subject: [PATCH] sparc32: fix build of pcic
Left-overs for an earlier iteration of the generic clock events patch removed.
---
This is obviously my bad!
I failed to pay enough attention to pcic.c - and furthermore did not build-test defconfig.
This patch is build-testet with defconfig.
I assume you will not fold the two patches as sparc-next is out in the public. But at least I do not mind if you decide to do so as I can quickly re-produce my sparc-next git tree.
Sam
arch/sparc/kernel/pcic.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
arch/sparc/kernel/pcic.c +3 -3
@@ -722,7 +722,7 @@ static unsigned int pcic_cycles_offset(void)*/ count = ((count /HZ ) *USECS_PER_JIFFY ) / (TICK_TIMER_LIMIT /HZ ); -/* Coordinate with the fact that timer_cs rate is 2MHz */ +/* Coordinate with the sparc_config.clock_rate setting */ return count *2 ; }
@@ -735,10 +735,10 @@ void __init pci_time_init(void)#ifndef CONFIG_SMP /* -* It's in SBUS dimension, because timer_cs is in this dimension. +* The clock_rate is in SBUS dimension. * We take into account this in pcic_cycles_offset() */ - timer_cs_period =SBUS_CLOCK_RATE /HZ ; + sparc_config.clock_rate =SBUS_CLOCK_RATE /HZ ; sparc_config.features |=FEAT_L10_CLOCKEVENT ;#endif sparc_config.features |=FEAT_L10_CLOCKSOURCE ;
Signature · 1 line
1.6.0.6
From: Sam Ravnborg <[email protected]>
Date: Mon, 16 Apr 2012 21:57:02 +0200
Quoted 10 lines
Quoted 1 line
From
2f007277975e8bce2b9142b28b609d7a4e9a631eMon Sep 17 00:00:00 2001From: Sam Ravnborg <[email protected]>
Date: Mon, 16 Apr 2012 21:50:49 +0200
Subject: [PATCH] sparc32: fix build of pcicLeft-overs for an earlier iteration of the generic clock events patch removed.
Reported-by Stephen Rothwell <[email protected]>Cc Kirill Tkhai <[email protected]>Signed-off-by Sam Ravnborg <[email protected]>
Applied, thanks.
Quoted 1 line
I assume you will not fold the two patches as sparc-next is out in the public.
That's correct.