mirror of
https://github.com/torvalds/linux.git
synced 2026-06-08 14:42:37 +02:00
rk3188: NFS Most Wanted workaround only for rk3188
This commit is contained in:
parent
4cf6119763
commit
8427c41e10
|
|
@ -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';
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user