summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorBenjamin Herrenschmidt <benh@kernel.crashing.org>2016-06-25 08:47:35 +1000
committerStewart Smith <stewart@linux.vnet.ibm.com>2016-07-06 19:30:48 +1000
commit7e4d14b364956b6756b62fc5e6ae4b1487e1bc3c (patch)
tree822c2d8da19528bbb0ded69234cce0e4655b84dd /include
parentfb43f202ddd86131acf14542c34fbcb9adab45f2 (diff)
downloadblackbird-skiboot-7e4d14b364956b6756b62fc5e6ae4b1487e1bc3c.tar.gz
blackbird-skiboot-7e4d14b364956b6756b62fc5e6ae4b1487e1bc3c.zip
Timebase quirk for slow simulators like AWAN and SIMICS
This will internally pretend the timebase is running 1000 times slower, which reduces some otherwise really terrible delays in some simulators. Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org> Acked-by: Michael Neuling <mikey@neuling.org> [stewart@linux.vnet.ibm.com: move cfam_chipid cleanup into own patch] Signed-off-by: Stewart Smith <stewart@linux.vnet.ibm.com>
Diffstat (limited to 'include')
-rw-r--r--include/chip.h1
-rw-r--r--include/timebase.h2
2 files changed, 2 insertions, 1 deletions
diff --git a/include/chip.h b/include/chip.h
index 0038814d..45413685 100644
--- a/include/chip.h
+++ b/include/chip.h
@@ -127,6 +127,7 @@ enum proc_chip_quirks {
QUIRK_NO_PBA = 0x00000008,
QUIRK_NO_OCC_IRQ = 0x00000010,
QUIRK_SIMICS = 0x00000020,
+ QUIRK_SLOW_SIM = 0x00000040,
} proc_chip_quirks;
static inline bool chip_quirk(unsigned int q)
diff --git a/include/timebase.h b/include/timebase.h
index 7f5afe15..7fc47489 100644
--- a/include/timebase.h
+++ b/include/timebase.h
@@ -52,7 +52,7 @@ static inline enum tb_cmpval tb_compare(unsigned long a,
}
/* Architected timebase */
-static const unsigned long tb_hz = 512000000;
+extern unsigned long tb_hz;
static inline unsigned long secs_to_tb(unsigned long secs)
{
OpenPOWER on IntegriCloud