Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64902
b: refs/heads/master
c: 2966c6a
h: refs/heads/master
v: v3
  • Loading branch information
Andi Kleen authored and Linus Torvalds committed Sep 12, 2007
1 parent 43b99b0 commit 3b00e6b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 95b08679963c78ce0d675224a6efdb5169f2bf75
refs/heads/master: 2966c6a03efd90197582eae8590d82c789475680
4 changes: 3 additions & 1 deletion trunk/arch/i386/kernel/cpu/intel_cacheinfo.c
Original file line number Diff line number Diff line change
Expand Up @@ -515,7 +515,7 @@ static int __cpuinit detect_cache_attributes(unsigned int cpu)

cpuid4_info[cpu] = kzalloc(
sizeof(struct _cpuid4_info) * num_cache_leaves, GFP_KERNEL);
if (unlikely(cpuid4_info[cpu] == NULL))
if (cpuid4_info[cpu] == NULL)
return -ENOMEM;

oldmask = current->cpus_allowed;
Expand Down Expand Up @@ -748,6 +748,8 @@ static void __cpuinit cache_remove_dev(struct sys_device * sys_dev)
unsigned int cpu = sys_dev->id;
unsigned long i;

if (cpuid4_info[cpu] == NULL)
return;
for (i = 0; i < num_cache_leaves; i++) {
cache_remove_shared_cpu_map(cpu, i);
kobject_unregister(&(INDEX_KOBJECT_PTR(cpu,i)->kobj));
Expand Down

0 comments on commit 3b00e6b

Please sign in to comment.