mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

53 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/linux26/arch-ppc-smp-hotfix.patch
  9. # ROCK Linux is Copyright (C) 1998 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. This is only a quick fix to make the 2.6 kernel compile on PowerPC.
  23. Untested due to the lack of SMP hardware ...
  24. - Rene Rebe <rene@rocklinux.org>
  25. --- linux-2.6.0-test4/arch/ppc/kernel/smp.c.orig 2003-08-23 02:00:45.000000000 +0200
  26. +++ linux-2.6.0-test4/arch/ppc/kernel/smp.c 2003-09-06 00:56:46.000000000 +0200
  27. @@ -47,7 +47,6 @@
  28. DEFINE_PER_CPU(unsigned int, prof_multiplier);
  29. DEFINE_PER_CPU(unsigned int, prof_counter);
  30. unsigned long cache_decay_ticks = HZ/100;
  31. -unsigned long cpu_online_map = cpumask_of_cpu(0);
  32. unsigned long cpu_possible_map = 1UL;
  33. int smp_hw_index[NR_CPUS];
  34. struct thread_info *secondary_ti;
  35. @@ -361,6 +360,7 @@
  36. void __devinit smp_prepare_boot_cpu(void)
  37. {
  38. + unsigned long cpu_online_map = cpumask_of_cpu(0);
  39. cpu_set(smp_processor_id(), cpu_online_map);
  40. cpu_set(smp_processor_id(), cpu_possible_map);
  41. }
  42. @@ -399,6 +399,7 @@
  43. struct task_struct *p;
  44. char buf[32];
  45. int c;
  46. + unsigned long cpu_online_map = cpumask_of_cpu(0);
  47. /* create a process for the processor */
  48. /* only regs.msr is actually used, and 0 is OK for it */