Re: [PATCH 3/5] time: Extend get_xtime_and_monotonic_offset() toalso return sleep
From: Jack Stone
Date: Wed Feb 16 2011 - 09:12:23 EST
On 16/02/2011 04:20, John Stultz wrote:
> diff --git a/kernel/time/timekeeping.c b/kernel/time/timekeeping.c
> index 5fbd9aa..29f75aa 100644
> --- a/kernel/time/timekeeping.c
> +++ b/kernel/time/timekeeping.c
> @@ -1043,8 +1043,10 @@ void do_timer(unsigned long ticks)
> * get_xtime_and_monotonic_offset() - get xtime and wall_to_monotonic
Can you update the function name in the comment as well.
> * @xtim: pointer to timespec to be set with xtime
> * @wtom: pointer to timespec to be set with wall_to_monotonic
> + * @sleep: pointer to timespec to be set with time in suspend
> */
> -void get_xtime_and_monotonic_offset(struct timespec *xtim, struct timespec *wtom)
> +void get_xtime_and_monotonic_and_sleep_offset(struct timespec *xtim,
> + struct timespec *wtom, struct timespec *sleep)
> {
> unsigned long seq;
>
> @@ -1052,6 +1054,7 @@ void get_xtime_and_monotonic_offset(struct timespec *xtim, struct timespec *wtom
> seq = read_seqbegin(&xtime_lock);
> *xtim = xtime;
> *wtom = wall_to_monotonic;
> + *sleep = total_sleep_time;
> } while (read_seqretry(&xtime_lock, seq));
> }
>
Thanks,
Jack
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/