Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7908a0c7 authored by Grant Grundler's avatar Grant Grundler Committed by Matthew Wilcox
Browse files

[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: default avatarGrant Grundler <grundler@parisc-linux.org>
Signed-off-by: default avatarKyle McMartin <kyle@parisc-linux.org>
parent 9cf8f370
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -143,7 +143,8 @@ static int __init processor_probe(struct parisc_device *dev)
	p = &cpu_data[cpuid];
	boot_cpu_data.cpu_count++;

	/* initialize counters */
	/* initialize counters - CPU 0 gets it_value set in time_init() */
	if (cpuid)
		memset(p, 0, sizeof(struct cpuinfo_parisc));

	p->loops_per_jiffy = loops_per_jiffy;