Messages in this thread Patch in this message | | | From | Vladimir Davydov <> | Subject | [PATCH 1/2] cpu: common: make clearcpuid option take bits list | Date | Fri, 20 Jul 2012 20:37:32 +0400 |
| |
It is more convenient to write 'clearcpuid=147,148,...' than 'clearcpuid=147 clearcpuid=148 ...' --- arch/x86/kernel/cpu/common.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/arch/x86/kernel/cpu/common.c b/arch/x86/kernel/cpu/common.c index 6b9333b..8ffe1b9 100644 --- a/arch/x86/kernel/cpu/common.c +++ b/arch/x86/kernel/cpu/common.c @@ -1012,10 +1012,10 @@ static __init int setup_disablecpuid(char *arg) { int bit; - if (get_option(&arg, &bit) && bit < NCAPINTS*32) - setup_clear_cpu_cap(bit); - else - return 0; + while (get_option(&arg, &bit)) { + if (bit >= 0 && bit < NCAPINTS*32) + setup_clear_cpu_cap(bit); + } return 1; } -- 1.7.1
| |