lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date:	Wed, 16 Feb 2011 14:12:01 +0000
From:	Jack Stone <jwjstone@...tmail.fm>
To:	John Stultz <john.stultz@...aro.org>
CC:	LKML <linux-kernel@...r.kernel.org>,
	Jamie Lokier <jamie@...reable.org>,
	Thomas Gleixner <tglx@...utronix.de>,
	Alexander Shishkin <virtuoso@...nd.org>,
	Arve Hjønnevåg <arve@...roid.com>
Subject: Re: [PATCH 3/5] time: Extend get_xtime_and_monotonic_offset() to
 also return sleep

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@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ