提交 7908a0c7 编写于 作者: G Grant Grundler 提交者: Matthew Wilcox

[PARISC] Prevent processor_probe() from clobbering cpu_data[0]

processor_probe() shouldn't clobber cpu_data[0]
cpu_data[0].it_value (used by timer_interrupt()) is already set.
Signed-off-by: NGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: NKyle McMartin <kyle@parisc-linux.org>
上级 9cf8f370
...@@ -143,8 +143,9 @@ static int __init processor_probe(struct parisc_device *dev) ...@@ -143,8 +143,9 @@ static int __init processor_probe(struct parisc_device *dev)
p = &cpu_data[cpuid]; p = &cpu_data[cpuid];
boot_cpu_data.cpu_count++; boot_cpu_data.cpu_count++;
/* initialize counters */ /* initialize counters - CPU 0 gets it_value set in time_init() */
memset(p, 0, sizeof(struct cpuinfo_parisc)); if (cpuid)
memset(p, 0, sizeof(struct cpuinfo_parisc));
p->loops_per_jiffy = loops_per_jiffy; p->loops_per_jiffy = loops_per_jiffy;
p->dev = dev; /* Save IODC data in case we need it */ p->dev = dev; /* Save IODC data in case we need it */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册