remove DMA call

This commit is contained in:
Tomoki Shirasawa
2014-03-30 16:14:19 +09:00
parent 76089e2682
commit e112aa8b06
3 changed files with 11 additions and 5 deletions

View File

@@ -106,7 +106,6 @@ static void send_syscall(struct syscall_request *req, int cpu)
struct ikc_scd_packet packet;
struct syscall_response *res;
unsigned long fin;
int w;
struct syscall_params *scp;
struct ihk_ikc_channel_desc *syscall_channel;
@@ -127,19 +126,20 @@ static void send_syscall(struct syscall_request *req, int cpu)
res->status = 0;
req->valid = 0;
#ifdef USE_DMA
memcpy_async(scp->request_pa,
virt_to_phys(req), sizeof(*req), 0, &fin);
memcpy_async_wait(&scp->post_fin);
scp->post_va->v[0] = scp->post_idx;
w = cpu + 1;
memcpy_async_wait(&fin);
#else
memcpy(scp->request_va, req, sizeof(*req));
#endif
barrier();
scp->request_va->valid = 1;
*(unsigned int *)scp->doorbell_va = w;
*(unsigned int *)scp->doorbell_va = cpu + 1;
#ifdef SYSCALL_BY_IKC
packet.msg = SCD_MSG_SYSCALL_ONESIDE;