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';