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]
Message-ID: <1347459744.13103.1033.camel@edumazet-glaptop>
Date:	Wed, 12 Sep 2012 16:22:24 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Stephane Eranian <eranian@...gle.com>
Cc:	linux-kernel@...r.kernel.org, peterz@...radead.org, mingo@...e.hu,
	ak@...ux.intel.com, zheng.z.yan@...el.com, robert.richter@....com
Subject: Re: [PATCH v2 1/3] hrtimer: add hrtimer_init_cpu()

On Wed, 2012-09-12 at 16:13 +0200, Stephane Eranian wrote:

>  void hrtimer_init_on_stack(struct hrtimer *timer, clockid_t clock_id,
>  			   enum hrtimer_mode mode)
>  {
>  	debug_object_init_on_stack(timer, &hrtimer_debug_descr);
> -	__hrtimer_init(timer, clock_id, mode);
> +	__hrtimer_init(smp_processor_id(), timer, clock_id, mode);
>  }

This assumes caller is in non preemptable context.



--
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