metag: add boot time LNKGET/LNKSET check
authorJames Hogan <james.hogan@imgtec.com>
Thu, 31 Jan 2013 11:06:03 +0000 (11:06 +0000)
committerJames Hogan <james.hogan@imgtec.com>
Sat, 2 Mar 2013 20:09:56 +0000 (20:09 +0000)
commit883a635591ef25bc6a325f8a43af17ec8ecfe011
tree2bc087451e14343e35cc6159cb91bfe0b5dd48f5
parent0a38a8adc5d479c1e59a82d1fcee3bdf59b85ef3
metag: add boot time LNKGET/LNKSET check

Add boot time check for whether LNKGET/LNKSET go through or around the
cache. Depending on the configuration an info message (no harm), warning
(technically wrong but no harm), or big WARN (expect failure in either
kernel or userland) may be emitted if the behaviour is not as expected:

Configuration                                Hardware   Response
------------------------------------------   --------   --------
AROUND_CACHE                                 through    pr_info
!AROUND_CACHE && ATOMICITY_LNKGET            around     WARN (kernel)
     "        && !ATOMICITY_LNKGET && SMP    around     WARN (user)
     "                   "         && !SMP   around     pr_warn

Signed-off-by: James Hogan <james.hogan@imgtec.com>
arch/metag/mm/cache.c