Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aaa225e0 authored by Michael Hennerich's avatar Michael Hennerich Committed by Mike Frysinger
Browse files

Blackfin: punt cache lock documentation



The cache lock code was unused and punted, so punt the documentation too.

Signed-off-by: default avatarMichael Hennerich <michael.hennerich@analog.com>
Signed-off-by: default avatarMike Frysinger <vapier@gentoo.org>
parent 17a1b5e3
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
00-INDEX
	- This file

cache-lock.txt
	- HOWTO for blackfin cache locking.

cachefeatures.txt
	- Supported cache features.

+0 −48
Original line number Diff line number Diff line
/*
 * File:         Documentation/blackfin/cache-lock.txt
 * Based on:
 * Author:
 *
 * Created:
 * Description:  This file contains the simple DMA Implementation for Blackfin
 *
 * Rev:          $Id: cache-lock.txt 2384 2006-11-01 04:12:43Z magicyang $
 *
 * Modified:
 *               Copyright 2004-2006 Analog Devices Inc.
 *
 * Bugs:         Enter bugs at http://blackfin.uclinux.org/
 *
 */

How to lock your code in cache in uClinux/blackfin
--------------------------------------------------

There are only a few steps required to lock your code into the cache.
Currently you can lock the code by Way.

Below are the interface provided for locking the cache.


1. cache_grab_lock(int Ways);

This function grab the lock for locking your code into the cache specified
by Ways.


2. cache_lock(int Ways);

This function should be called after your critical code has been executed.
Once the critical code exits, the code is now loaded into the cache. This
function locks the code into the cache.


So, the example sequence will be:

	cache_grab_lock(WAY0_L);	/* Grab the lock */

	critical_code();		/* Execute the code of interest */

	cache_lock(WAY0_L);		/* Lock the cache */

Where WAY0_L signifies WAY0 locking.
+0 −10
Original line number Diff line number Diff line
@@ -41,16 +41,6 @@
		icplb_flush();
		dcplb_flush();

	- Locking the cache.

		cache_grab_lock();
		cache_lock();

	Please refer linux-2.6.x/Documentation/blackfin/cache-lock.txt for how to
	lock the cache.

	Locking the cache is optional feature.

	- Miscellaneous cache functions.

		flush_cache_all();