]> git.karo-electronics.de Git - karo-tx-linux.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>
Fri, 8 Feb 2013 09:53:10 +0000 (09:53 +0000)
commit11096907f7d9f44b208c38f1f8e018d5c5836a3a
treeecb5fd478f41277eea9d94efe6803e36414a33a0
parentce288cc984be320a44b822f7573fb067153255f0
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