]> 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)
commita21c6f19f322321d493161cba99676941087f67f
tree2bc087451e14343e35cc6159cb91bfe0b5dd48f5
parent5d19272a14c2dd17cd40260d26c227be41891785
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