From 50b6ab7b0aa8972aabfdcea3ac542f8d8cb71976 Mon Sep 17 00:00:00 2001 From: Shaun Ruffell Date: Thu, 20 Oct 2011 20:52:26 +0000 Subject: wct4xxp: Remove prefetching support. I was unable to measure a performance change with prefetching. Signed-off-by: Shaun Ruffell Acked-by: Michael Spiceland Acked-by: Russ Meyerriecks git-svn-id: http://svn.asterisk.org/svn/dahdi/linux/trunk@10236 a0bf4364-ded3-4de4-8d8a-66a801d63aff --- drivers/dahdi/wct4xxp/base.c | 23 ----------------------- 1 file changed, 23 deletions(-) (limited to 'drivers') 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); } -- cgit v1.2.3