[N71] Change a chunk state management to safely resize I/O buffers.
authorDongju Chae <dongju.chae@samsung.com>
Fri, 12 Jul 2019 02:03:57 +0000 (11:03 +0900)
committer함명주/On-Device Lab(SR)/Principal Engineer/삼성전자 <myungjoo.ham@samsung.com>
Fri, 12 Jul 2019 04:48:49 +0000 (13:48 +0900)
commita4ee40dd308b02e0c1efb75cdc4cd0192a66e4d0
tree0cdd613eaac61f2b150e22d99678e5965464cd1d
parenta4574e6ba515193a28ef8aae64c08b6b931c1243
[N71] Change a chunk state management to safely resize I/O buffers.

This commit changes the logic of chunk state management to safely resize I/O buffers.
Now, each chunk has one of three states (i.e., free, activated, modified).
This 'modified' state contains anything which can change the offset and size of a used chunk.

Signed-off-by: Dongju Chae <dongju.chae@samsung.com>
core/npu-engine/src/ne-mem.c