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: <1315894267.2556.21.camel@edumazet-laptop>
Date:	Tue, 13 Sep 2011 08:11:06 +0200
From:	Eric Dumazet <eric.dumazet@...il.com>
To:	Huang Ying <ying.huang@...el.com>
Cc:	Tejun Heo <tj@...nel.org>,
	Christoph Lameter <cl@...ux-foundation.org>,
	LKML <linux-kernel@...r.kernel.org>
Subject: Re: What is the difference between percpu_xxx and this_cpu_xxx?

Le mardi 13 septembre 2011 à 12:28 +0800, Huang Ying a écrit :
> Hi,
> 
> If my understanding was correct, from the kernel source code, it appears
> that percpu_xxx and this_cpu_xxx have the same semantics and
> implementation in effect, haven’t them?
> 
> If so, why do we need two API for the same thing?

History mostly, and transition.

percpu_inc() was an x86 only thing

__get_cpu_var(var)++ -> percpu_inc(var) -> this_cpu_inc(var)



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