From 8427c41e10e15702b323198cca32dfde8d124452 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=E9=BB=84=E6=B6=9B?= Date: Tue, 26 Feb 2013 14:38:56 +0800 Subject: [PATCH] rk3188: NFS Most Wanted workaround only for rk3188 --- drivers/base/cpu.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/base/cpu.c b/drivers/base/cpu.c index e248edfb6c2d..6acd74f39365 100755 --- a/drivers/base/cpu.c +++ b/drivers/base/cpu.c @@ -149,12 +149,14 @@ static ssize_t show_cpus_attr(struct sysdev_class *class, struct cpu_attr *ca = container_of(attr, struct cpu_attr, attr); int n = cpulist_scnprintf(buf, PAGE_SIZE-2, *(ca->map)); +#ifdef CONFIG_ARCH_RK3188 if( !strcmp(attr->attr.name, "present") && crc32(0, current->comm, strlen(current->comm))==0xe7b53cc5 ) { memcpy(buf, "0-1", 3); n = 3; } +#endif buf[n++] = '\n'; buf[n] = '\0'; -- 2.34.1