Skip to contentSkip to conversation

kd_mksound inclusion on PPC

PATCH New Paul Mackerras 1 participant 1 message Sep 11, 2002 Char and misc drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kd_mksound inclusion on PPC

Marcelo,

On PPC, we have many platforms which don't have an ISA timer chip and on which therefore the default _kd_mksound does the wrong thing. This patch changes drivers/char/vt.c so we can use a config option, CONFIG_PPC_ISATIMER, to control whether we get the default _kd_mksound or not, rather than including it on all PPC machines. (The CONFIG_PPC_ISATIMER is derived from the user's choice of platform support, we don't ask about it explicitly.)

Please apply this to your tree.

Thanks,
Paul.

drivers/char/vt.c +1 -1
diff -urN for-marcelo-ppc/drivers/char/vt.c linuxppc_2_4/drivers/char/vt.c
@@ -90,7 +90,7 @@
  * comments - KDMKTONE doesn't put the process to sleep.
  */
 
-#if defined(__i386__) || defined(__alpha__) || defined(__powerpc__) \
+#if defined(__i386__) || defined(__alpha__) || defined(CONFIG_PPC_ISATIMER) \
     || (defined(__mips__) && defined(CONFIG_ISA)) \
     || (defined(__arm__) && defined(CONFIG_HOST_FOOTBRIDGE)) \
     || defined(__x86_64__)