staging: most: add fair buffer distribution
authorChristian Gromm <christian.gromm@microchip.com>
Mon, 28 Sep 2015 15:18:45 +0000 (17:18 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 29 Sep 2015 01:18:51 +0000 (03:18 +0200)
commit71457d482751a38e78da32fde80e87b6f670c389
tree5a5c845fb2a78d9c33ee48b1448473316af73cfa
parentc81c9c3e0fd5170e7bede7d06202062338644e93
staging: most: add fair buffer distribution

This patch ensures a fair distribution of buffers, when two AIMs share a
single channel. The AIMs then won't be able to use more than half of all
pre-allocated buffers of the linked channel. However, in case the channel
is not shared, the AIM can exclusively use all available buffers.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/most/aim-cdev/cdev.c
drivers/staging/most/aim-network/networking.c
drivers/staging/most/aim-sound/sound.c
drivers/staging/most/hdm-dim2/dim2_hdm.c
drivers/staging/most/mostcore/core.c
drivers/staging/most/mostcore/mostcore.h