rk3188: NFS Most Wanted workaround only for rk3188

This commit is contained in:
黄涛 2013-02-26 14:38:56 +08:00
parent 4cf6119763
commit 8427c41e10

View File

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