diff options
Diffstat (limited to 'include/linux/posix-clock.h')
| -rw-r--r-- | include/linux/posix-clock.h | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/posix-clock.h b/include/linux/posix-clock.h index 369e19d3750..34c4498b800 100644 --- a/include/linux/posix-clock.h +++ b/include/linux/posix-clock.h @@ -24,6 +24,7 @@  #include <linux/fs.h>  #include <linux/poll.h>  #include <linux/posix-timers.h> +#include <linux/rwsem.h>  struct posix_clock; @@ -44,7 +45,7 @@ struct posix_clock;   * @timer_create:   Create a new timer   * @timer_delete:   Remove a previously created timer   * @timer_gettime:  Get remaining time and interval of a timer - * @timer_setttime: Set a timer's initial expiration and interval + * @timer_settime: Set a timer's initial expiration and interval   * @fasync:         Optional character device fasync method   * @mmap:           Optional character device mmap method   * @open:           Optional character device open method @@ -104,7 +105,7 @@ struct posix_clock_operations {   * @ops:     Functional interface to the clock   * @cdev:    Character device instance for this clock   * @kref:    Reference count. - * @mutex:   Protects the 'zombie' field from concurrent access. + * @rwsem:   Protects the 'zombie' field from concurrent access.   * @zombie:  If 'zombie' is true, then the hardware has disappeared.   * @release: A function to free the structure when the reference count reaches   *           zero. May be NULL if structure is statically allocated. @@ -117,7 +118,7 @@ struct posix_clock {  	struct posix_clock_operations ops;  	struct cdev cdev;  	struct kref kref; -	struct mutex mutex; +	struct rw_semaphore rwsem;  	bool zombie;  	void (*release)(struct posix_clock *clk);  };  |