On Fri, 2007-09-28 at 16:00 -0700, Dave Hansen wrote:That's why we look at the counters inside stop_machine_run(). Note that (1) the module implementation handles hotplug CPUs, and (2) percpu_counter_sum() doesn't have to either (that's just for percpu_counter_read()). But it might be a useful cleanup (although a slight de-optimization). If you want I'll queue for 2.6.24 (there are several other module patches pending too). In an ideal world, (1) we would have percpu pointers using the same percpu mechanism as percpu variables, (2) we would have a modal variant of percpu counters which would collapse to a single counter when we cared about the precise value (probably using stop_machine for the transition). This would be useful for many other cases. Cheers, Rusty. -
| Cyrill Gorcunov | memset as memzero |
| Chuck Ebbert | Why do so many machines need "noapic"? |
| Mikulas Patocka | LFENCE instruction (was: [rfc][patch 3/3] x86: optimise barriers) |
| Alexandre Oliva | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Johannes Schindelin | Re: libxdiff and patience diff |
| Junio C Hamano | Re: git push (mis ?)behavior |
| Petr Baudis | [ANNOUNCE] Git homepage change |
| Junio C Hamano | Medium term dreams |
| GVG GVG | ssh_exchange_identification: Connection closed by remote host |
| Richard Stallman | Real men don't attack straw men |
| Brian Hansen | Linus about C++ |
| Juan Miscaro | When will OpenBSD support UTF8? |
| Matt Mackall | [PATCH] Stop scaring users with "treason uncloaked!" |
| Badalian Vyacheslav | e1000: Question about polling |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Arjan van de Ven | Re: [GIT]: Networking |
