lkml.org 
[lkml]   [2009]   [Oct]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    SubjectRe: [RFC][PATCH] kmap_atomic_push
    From
    Date

    Just to make it clear, the stack design gets rid of crap like:

    -#define __KM_PTE \
    - (in_nmi() ? KM_NMI_PTE : \
    - in_irq() ? KM_IRQ_PTE : \
    - KM_PTE0)

    and

    -static inline enum km_type crypto_kmap_type(int out)
    -{
    - enum km_type type;
    -
    - if (in_softirq())
    - type = out * (KM_SOFTIRQ1 - KM_SOFTIRQ0) + KM_SOFTIRQ0;
    - else
    - type = out * (KM_USER1 - KM_USER0) + KM_USER0;
    -
    - return type;
    -}





    \
     
     \ /
      Last update: 2009-10-09 00:47    [W:0.020 / U:89.028 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site