• Rusty Russell's avatar
    [PATCH] cli_sti in drivers_net_hamradio_bpqether.c · f794d623
    Rusty Russell authored
    From:  Chris Wilson <chris@qwirx.com>
    
      As part of the Linux Kernel Janitors project, I would like to submit my
      patch for bpqether.c.
    
      The document Documentation/cli-sti-removal.txt says that cli() should no
      longer be used to disable interrupts. This patch removes all references to
      cli() and {save,restore}_flags.
    
      - added a static spinlock to protect bpq_devices
      - changed cli/sti and {save,restore}_flags to taking the spinlock and
        disabling interrupts with spin_lock_irqsave
      - included my previous patch for proc_net_create, but as a separate hunk,
        so if you've already applied then just ignore the rejected hunk.
    
      I have verified that the patched driver compiles without warnings, but
      since I don't have the hardware I can't test it. Please treat with
      caution.
    f794d623
bpqether.c 15 KB