use accelerator regardless of cpu core count (#5759)
Signed-off-by: si458 <simonsmith5521@gmail.com>
This commit is contained in:
parent
bfec20ac81
commit
ddcff9f0d2
|
@ -1407,10 +1407,6 @@ module.exports.CertificateOperations = function (parent) {
|
|||
|
||||
// Perform any general operation
|
||||
obj.acceleratorPerformOperation = function (operation, data, tag, func) {
|
||||
if (acceleratorTotalCount <= 1) {
|
||||
// No accelerators available
|
||||
require(program).processMessage({ action: operation, data: data, tag: tag, func: func });
|
||||
} else {
|
||||
var acc = obj.getAccelerator();
|
||||
if (acc == null) {
|
||||
// Add to pending accelerator workload
|
||||
|
@ -1421,7 +1417,6 @@ module.exports.CertificateOperations = function (parent) {
|
|||
acceleratorPerformSignatureRunFuncCall++;
|
||||
acc.send(acc.x = { action: operation, data: data, tag: tag, func: func });
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
return obj;
|
||||
|
|
Loading…
Reference in New Issue