summaryrefslogtreecommitdiff
path: root/LocomotorPrimitivesManager.cpp
blob: 71df3135e0cbc710c906490300ce480b091b8469 (plain)
1
2
3
4
5
6
7
8
9
#include <OpenSim/OpenSim.h>

#include "LocomotorPrimitivesManager.h"

bool LocomotorPrimitivesManager::doIntegration(SimTK::State &s, int step, double dtFirst)
{
	// TODO possiblly additional calculations
	return OpenSim::Manager::doIntegration(s, step, dtFirst);
}
oscript>
authorDan Streetman <ddstreet@ieee.org>2016-05-05 16:22:23 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2016-05-05 17:38:53 -0700
commit32a4e169039927bfb6ee9f0ccbbe3a8aaf13a4bc (patch)
tree7b1ab68ce63b91cd828e103f827f0bc76b930b36
parent127393fbe597dd85863a9bdccaa11007e7d4948f (diff)
mm/zswap: provide unique zpool name
Instead of using "zswap" as the name for all zpools created, add an atomic counter and use "zswap%x" with the counter number for each zpool created, to provide a unique name for each new zpool. As zsmalloc, one of the zpool implementations, requires/expects a unique name for each pool created, zswap should provide a unique name. The zsmalloc pool creation does not fail if a new pool with a conflicting name is created, unless CONFIG_ZSMALLOC_STAT is enabled; in that case, zsmalloc pool creation fails with -ENOMEM. Then zswap will be unable to change its compressor parameter if its zpool is zsmalloc; it also will be unable to change its zpool parameter back to zsmalloc, if it has any existing old zpool using zsmalloc with page(s) in it. Attempts to change the parameters will result in failure to create the zpool. This changes zswap to provide a unique name for each zpool creation. Fixes: f1c54846ee45 ("zswap: dynamic pool creation") Signed-off-by: Dan Streetman <ddstreet@ieee.org> Reported-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Reviewed-by: Sergey Senozhatsky <sergey.senozhatsky@gmail.com> Cc: Dan Streetman <dan.streetman@canonical.com> Cc: Minchan Kim <minchan@kernel.org> Cc: <stable@vger.kernel.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat