2 * YAFFS: Yet another FFS. A NAND-flash specific file system.
4 * Copyright (C) 2002-2011 Aleph One Ltd.
5 * for Toby Churchill Ltd and Brightstar Engineering
7 * Created by Timothy Manning <timothy@yaffs.net>
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
15 static volatile unsigned int *p_counter;
16 static unsigned int numberOfThreads=5;
18 unsigned int get_num_of_threads(void)
20 return numberOfThreads;
23 void number_of_threads(unsigned int num)
28 int get_counter(int x)
33 void set_counter(int x, unsigned int value)
38 void init_counter(unsigned int size_of_counter)
40 p_counter=malloc(size_of_counter*sizeof(unsigned int));