diff options
author | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-12-24 03:11:55 +0000 |
---|---|---|
committer | Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net> | 2009-12-24 03:11:55 +0000 |
commit | 36cc1c8144db8c0a84d7b79dd3011fb2a0398cfb (patch) | |
tree | 0522bdd685b608f066795f75bb905b31c3b56b43 /internal.c | |
parent | 552420b0d677bfb8d3b0b487255b244964c948e9 (diff) | |
download | flashrom-git-36cc1c8144db8c0a84d7b79dd3011fb2a0398cfb.tar.gz |
Internal.c was always compiled in because it hosted the function internal_delay()
Move that function to udelay.c and compile internal.c only if really
needed. physmap.c is only needed if the programmer is internal or a PCI
card. Make its compilation conditional.
Corresponding to flashrom svn r822.
Signed-off-by: Carl-Daniel Hailfinger <c-d.hailfinger.devel.2006@gmx.net>
Acked-by: Idwer Vollering <vidwer@gmail.com>
Diffstat (limited to 'internal.c')
-rw-r--r-- | internal.c | 12 |
1 files changed, 0 insertions, 12 deletions
@@ -248,18 +248,6 @@ uint32_t mmio_readl(void *addr) return *(volatile uint32_t *) addr; } -void internal_delay(int usecs) -{ - /* If the delay is >1 s, use usleep because timing does not need to - * be so precise. - */ - if (usecs > 1000000) { - usleep(usecs); - } else { - myusec_delay(usecs); - } -} - /* No-op shutdown() for programmers which don't need special handling */ int noop_shutdown(void) { |