aboutsummaryrefslogtreecommitdiff
path: root/include/Kbuild
diff options
context:
space:
mode:
authorLinus Torvalds2009-08-03 10:58:29 -0700
committerGreg Kroah-Hartman2009-08-04 13:46:30 -0700
commit18eac1cc100fa2afd5f39085aae6b694e417734b (patch)
tree52ac69ef9832c77a0c6865f9eff39dd4f287776e /include/Kbuild
parenta33a052f19a21d727847391c8c1aff3fb221c472 (diff)
tty-ldisc: make refcount be atomic_t 'users' count
This is pure preparation of changing the ldisc reference counting to be a true refcount that defines the lifetime of the ldisc. But this is a purely syntactic change for now to make the next steps easier. This patch should make no semantic changes at all. But I wanted to make the ldisc refcount be an atomic (I will be touching it without locks soon enough), and I wanted to rename it so that there isn't quite as much confusion between 'ldo->refcount' (ldisk operations refcount) and 'ld->refcount' (ldisc refcount itself) in the same file. So it's now an atomic 'ld->users' count. It still starts at zero, despite having a reference from 'tty->ldisc', but that will change once we turn it into a _real_ refcount. Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org> Tested-by: OGAWA Hirofumi <hirofumi@mail.parknet.co.jp> Tested-by: Sergey Senozhatsky <sergey.senozhatsky@mail.by> Acked-by: Alan Cox <alan@linux.intel.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'include/Kbuild')
0 files changed, 0 insertions, 0 deletions