Example #1
0
static void prefetch_children(struct del_stack *s, struct frame *f)
{
	unsigned i;
	struct dm_block_manager *bm = dm_tm_get_bm(s->tm);

	for (i = 0; i < f->nr_children; i++)
		dm_bm_prefetch(bm, value64(f->n, i));
}
Example #2
0
static void prefetch_issue(struct prefetch_set *p, struct dm_block_manager *bm)
{
    unsigned i;

    mutex_lock(&p->lock);

    for (i = 0; i < PREFETCH_SIZE; i++)
        if (p->blocks[i] != PREFETCH_SENTINEL) {
            dm_bm_prefetch(bm, p->blocks[i]);
            p->blocks[i] = PREFETCH_SENTINEL;
        }

    mutex_unlock(&p->lock);
}