| * Copyright 2010 Tilera Corporation. All Rights Reserved. |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License |
| * as published by the Free Software Foundation, version 2. |
| * This program is distributed in the hope that it will be useful, but |
| * WITHOUT ANY WARRANTY; without even the implied warranty of |
| * MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE, GOOD TITLE or |
| * NON INFRINGEMENT. See the GNU General Public License for |
| #include <linux/cpumask.h> |
| * Allow cropping out bits beyond the end of the array. |
| * Move to "lib" directory if more clients want to use this routine. |
| int bitmap_parselist_crop(const char *bp, unsigned long *maskp, int nmaskbits) |
| bitmap_zero(maskp, nmaskbits); |
| a = simple_strtoul(bp, (char **)&bp, 10); |
| b = simple_strtoul(bp, (char **)&bp, 10); |
| } while (*bp != '\0' && *bp != '\n'); |