diff options
author | Shaun Ruffell <sruffell@digium.com> | 2011-10-20 20:52:26 +0000 |
---|---|---|
committer | Shaun Ruffell <sruffell@digium.com> | 2011-10-20 20:52:26 +0000 |
commit | 50b6ab7b0aa8972aabfdcea3ac542f8d8cb71976 (patch) | |
tree | 90fa9b066fe0b76f7e400fadd0346046f02190ee | |
parent | 0ecefec63551535a6f057e4521efc9abfaa78c3f (diff) |
wct4xxp: Remove prefetching support.
I was unable to measure a performance change with prefetching.
Signed-off-by: Shaun Ruffell <sruffell@digium.com>
Acked-by: Michael Spiceland <mspiceland@digium.com>
Acked-by: Russ Meyerriecks <rmeyerriecks@digium.com>
git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10236 a0bf4364-ded3-4de4-8d8a-66a801d63aff
-rw-r--r-- | drivers/dahdi/wct4xxp/base.c | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/drivers/dahdi/wct4xxp/base.c b/drivers/dahdi/wct4xxp/base.c index 7489774..89a1153 100644 --- a/drivers/dahdi/wct4xxp/base.c +++ b/drivers/dahdi/wct4xxp/base.c @@ -56,9 +56,6 @@ /* #define ENABLE_WORKQUEUES */ #endif -/* Enable prefetching may help performance */ -#define ENABLE_PREFETCH - /* Support first generation cards? */ #define SUPPORT_GEN1 @@ -2878,26 +2875,6 @@ static void __receive_span(struct t4_span *ts) } } #endif - -#ifdef ENABLE_PREFETCH - prefetch((void *)(ts->readchunk)); - prefetch((void *)(ts->writechunk)); - prefetch((void *)(ts->readchunk + 8)); - prefetch((void *)(ts->writechunk + 8)); - prefetch((void *)(ts->readchunk + 16)); - prefetch((void *)(ts->writechunk + 16)); - prefetch((void *)(ts->readchunk + 24)); - prefetch((void *)(ts->writechunk + 24)); - prefetch((void *)(ts->readchunk + 32)); - prefetch((void *)(ts->writechunk + 32)); - prefetch((void *)(ts->readchunk + 40)); - prefetch((void *)(ts->writechunk + 40)); - prefetch((void *)(ts->readchunk + 48)); - prefetch((void *)(ts->writechunk + 48)); - prefetch((void *)(ts->readchunk + 56)); - prefetch((void *)(ts->writechunk + 56)); -#endif - _dahdi_ec_span(&ts->span); _dahdi_receive(&ts->span); } |