r8169: bh locking redux and task scheduling.
authorFrancois Romieu <romieu@fr.zoreil.com>
Tue, 31 Jan 2012 09:47:34 +0000 (10:47 +0100)
committerFrancois Romieu <romieu@fr.zoreil.com>
Tue, 31 Jan 2012 13:32:40 +0000 (14:32 +0100)
commit98ddf986fca17840e46e070354b7e2cd2169da15
tree520b59064cfb654b15d1491536112d41492f8fa1
parentae1f23fb433ac0aaff8aeaa5a7b14348e9aa8277
r8169: bh locking redux and task scheduling.

- atomic bit operations are globally visible
- pending status is always cleared before execution
- scheduled works are either idempotent or only required to happen once
  after a series of originating events, say link events for instance

Signed-off-by: Francois Romieu <romieu@fr.zoreil.com>
Suggested-by: Michał Mirosław <mirqus@gmail.com>
Cc: Hayes Wang <hayeswang@realtek.com>
drivers/net/ethernet/realtek/r8169.c