summaryrefslogtreecommitdiff
path: root/src/til.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/til.c')
-rw-r--r--src/til.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/til.c b/src/til.c
index 5d9a91f..0aa8efd 100644
--- a/src/til.c
+++ b/src/til.c
@@ -795,9 +795,16 @@ int til_module_setup_finalize(const til_module_t *module, const til_settings_t *
}
-/* generic fragmenter using a horizontal slice per cpu according to context->n_cpus (multiplied by a constant factor) */
+/* generic fragmenter using a horizontal slice per cpu according to context->n_cpus */
int til_fragmenter_slice_per_cpu(til_module_context_t *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment)
{
+ return til_fb_fragment_slice_single(fragment, context->n_cpus, number, res_fragment);
+}
+
+
+/* generic fragmenter using a horizontal slice per cpu according to context->n_cpus * 16 */
+int til_fragmenter_slice_per_cpu_x16(til_module_context_t *context, const til_fb_fragment_t *fragment, unsigned number, til_fb_fragment_t *res_fragment)
+{
/* The *16 is to combat leaving CPUs idle waiting for others to finish their work.
*
* Even though there's some overhead in scheduling smaller work units,
© All Rights Reserved