Commit 4c5b8a64 authored by Mike Frysinger's avatar Mike Frysinger Committed by Bryan Wu
Browse files

Blackfin arch: remove pointless define IN_KERNEL

parent ff4c02e4
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -46,8 +46,6 @@ extern void bfin_dcache_init(struct cplb_entry *icplb_tbl);
#define I_CPLB    0x4
#define D_CPLB    0x8

#define IN_KERNEL 1

#define ASYNC_MEMORY_CPLB_COVERAGE  ((ASYNC_BANK0_SIZE + ASYNC_BANK1_SIZE + \
				ASYNC_BANK2_SIZE + ASYNC_BANK3_SIZE) / SIZE_4M)

+4 −4
Original line number Diff line number Diff line
@@ -160,13 +160,13 @@ static struct cplb_desc cplb_data[] = {
	},
};

static u16 __init lock_kernel_check(u32 start, u32 end)
static bool __init lock_kernel_check(u32 start, u32 end)
{
	if (start >= (u32)_end || end <= (u32)_stext)
		return 0;
		return false;

	/* This cplb block overlapped with kernel area. */
	return IN_KERNEL;
	return true;
}

static unsigned short __init
@@ -198,7 +198,7 @@ fill_cplbtab(struct cplb_tab *table,

		table->tab[table->pos++] = start;

		if (lock_kernel_check(start, start + block_size) == IN_KERNEL)
		if (lock_kernel_check(start, start + block_size))
			table->tab[table->pos++] =
			    cplb_data | CPLB_LOCK | CPLB_DIRTY;
		else