]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5bc867d55b1cc205c2f3bd71881a39e0565ea532
tree2bc087451e14343e35cc6159cb91bfe0b5dd48f5
parenta3d2b2b515a8ccd55eabee76a380b82e045e120a
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