NAK: [PATCH 2/2] s390/time: LPAR offset handling

Seth Forshee seth.forshee at canonical.com
Tue Nov 29 17:17:05 UTC 2016


On Mon, Nov 28, 2016 at 02:29:53PM -0700, Tim Gardner wrote:
> @@ -1564,7 +1590,10 @@ static int stp_sync_clock(void *data)
>  		if (rc == 0) {
>  			new_clock = get_tod_clock();
>  			delta = adjust_time(old_clock, new_clock, 0);
> -			clock_delta = new_clock - old_clock;
> +			if (ptff_query(PTFF_QTO) &&
> +			    ptff(&qto, sizeof(qto), PTFF_QTO) == 0)
> +				/* Update LPAR offset */
> +				lpar_offset = qto.tod_epoch_difference;
>  			atomic_notifier_call_chain(&s390_epoch_delta_notifier,
>  						   0, &clock_delta);

Isn't clock_delta now uninitialized?




More information about the kernel-team mailing list