lkml.org 
[lkml]   [2008]   [Aug]   [26]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH][resubmit] TPM: update char dev BKL pushdown
> +	atomic_set(&chip->is_open, 1);
> + get_device(chip->dev); /* protect from chip disappearing */

Why not just use test_and_set_bit() ? You seem to be abusing atomic_t to
achieve this.


\
 
 \ /
  Last update: 2008-08-26 23:51    [from the cache]
©2003-2011 Jasper Spaans