• Stanislaw Gruszka's avatar
    iwlegacy: cleanup/fix memory barriers · 4e5ea208
    Stanislaw Gruszka authored
    wmb(), rmb() are not needed when writel(), readl() are used as
    accessors for MMIO. We use them indirectly via iowrite32(),
    ioread32().
    
    What is needed mmiowb(), for synchronizing writes coming from
    different CPUs on PCIe bridge (see in patch comments). This
    fortunately is not needed on x86, where mmiowb() is just
    defined as compiler barrier. As iwlegacy devices are most likely
    not used on anything other than x86, this is not so important
    fix.
    Signed-off-by: default avatarStanislaw Gruszka <sgruszka@redhat.com>
    Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
    4e5ea208
common.c 147 KB