projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4cf6119
)
rk3188: NFS Most Wanted workaround only for rk3188
author
黄涛
<huangtao@rock-chips.com>
Tue, 26 Feb 2013 06:38:56 +0000
(14:38 +0800)
committer
黄涛
<huangtao@rock-chips.com>
Tue, 26 Feb 2013 06:38:56 +0000
(14:38 +0800)
drivers/base/cpu.c
patch
|
blob
|
history
diff --git
a/drivers/base/cpu.c
b/drivers/base/cpu.c
index e248edfb6c2d45ef3e2ad73f982aa72afc042dbb..6acd74f39365d38e76789881ad4de10940a57e6f 100755
(executable)
--- 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';