Changeset 17812 for src/linux/laguna/linux-3.0/kernel/posix-cpu-timers.c
- Timestamp:
- 10/25/11 13:45:09 (19 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/linux/laguna/linux-3.0/kernel/posix-cpu-timers.c
r17795 r17812 275 275 unsigned long flags; 276 276 277 spin_lock_irqsave(&cputimer->lock, flags);278 277 if (!cputimer->running) { 279 cputimer->running = 1;280 278 /* 281 279 * The POSIX timer interface allows for absolute time expiry … … 285 283 */ 286 284 thread_group_cputime(tsk, &sum); 285 spin_lock_irqsave(&cputimer->lock, flags); 286 cputimer->running = 1; 287 287 update_gt_cputime(&cputimer->cputime, &sum); 288 } 288 } else 289 spin_lock_irqsave(&cputimer->lock, flags); 289 290 *times = cputimer->cputime; 290 291 spin_unlock_irqrestore(&cputimer->lock, flags);
Note: See TracChangeset
for help on using the changeset viewer.
