Skip to content

Commit

Permalink
sunhme: Cleanup use of deprecated calls to save_and_cli and restore_f…
Browse files Browse the repository at this point in the history
…lags.

Make use of local_irq_save and local_irq_restore rather then the
deprecated save_and_cli and restore_flags calls.

Signed-off-by: Mark Asselstine <mark.asselstine@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Mark Asselstine authored and David S. Miller committed Jun 4, 2008
1 parent a13366c commit c03e05d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/sunhme.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,15 +111,15 @@ static __inline__ void tx_add_log(struct happy_meal *hp, unsigned int a, unsigne
struct hme_tx_logent *tlp;
unsigned long flags;

save_and_cli(flags);
local_irq_save(flags);
tlp = &tx_log[txlog_cur_entry];
tlp->tstamp = (unsigned int)jiffies;
tlp->tx_new = hp->tx_new;
tlp->tx_old = hp->tx_old;
tlp->action = a;
tlp->status = s;
txlog_cur_entry = (txlog_cur_entry + 1) & (TX_LOG_LEN - 1);
restore_flags(flags);
local_irq_restore(flags);
}
static __inline__ void tx_dump_log(void)
{
Expand Down

0 comments on commit c03e05d

Please sign in to comment.