Skip to content
  • James Hogan's avatar
    metag: add boot time LNKGET/LNKSET check · 883a6355
    James Hogan authored
    
    
    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: default avatarJames Hogan <james.hogan@imgtec.com>
    883a6355