Skip to contentSkip to conversation

drivers/chat/vt.c - keyboard click

PATCH Florian Lohoff 2 participants 2 messages May 4, 2001 – May 7, 2001 MIPS

lore
Share & tools
lore
#0 lore raw

Hi,
i found this snippet:

drivers/char/vt.c:

     85 /*
     86  * Generates sound of some frequency for some number of clock ticks
     87  *
     88  * If freq is 0, will turn off sound, else will turn it on for that time.
     89  * If msec is 0, will return immediately, else will sleep for msec time, then
     90  * turn sound off.
     91  *
     92  * We also return immediately, which is what was implied within the X
     93  * comments - KDMKTONE doesn't put the process to sleep.
     94  */
     95
     96 #if defined(__i386__) || defined(__alpha__) || defined(__powerpc__) \
     97     || (defined(__mips__) && defined(CONFIG_ISA)) \
     98     || (defined(__arm__) && defined(CONFIG_HOST_FOOTBRIDGE))

Does any of the currently supported mips architectures actually support this ? I guess the RM200 could but i dont think that tree will actually work.

I suggest to apply this:

Index: drivers/char/vt.c
===================================================================
RCS file: /cvs/linux/drivers/char/vt.c,v
retrieving revision 1.30

char/vt.c +1 -1
diff -u -r1.30 vt.c
@@ -94,7 +94,7 @@
  */
 
 #if defined(__i386__) || defined(__alpha__) || defined(__powerpc__) \
-    || (defined(__mips__) && defined(CONFIG_ISA)) \
+    || !defined(__mips__) \
     || (defined(__arm__) && defined(CONFIG_HOST_FOOTBRIDGE))
 
 static void

As most mips architectures having ISA dont support this - Any the ones who actually want it may enable it instead of the 10-20 subarchs which dont support it do disable this.

Flo

Signature · 2 lines
Florian Lohoff                  [email protected]             +49-5201-669912
     Why is it called "common sense" when nobody seems to have any?
#1 lore raw
Quoted 4 lines · Florian Lohoff

Does any of the currently supported mips architectures actually support this ? I guess the RM200 could but i dont think that tree will actually work.

I suggest to apply this:

My plan was to eleminate all this mess and use CONFIG_PC_BEEPER instead.

Ralf