Skip to content

Commit 667bc38

Browse files
committed
[SPARC]: Kill 'prom_palette'.
The idea of this thing is we could save/restore the firmware's palette when breaking in and out of the firmware prompt. Only one driver implemented this (atyfb) and it's value is questionable. If you're just debugging you don't really care that the characters end up being purple or whatever. And we can provide better debugging and firmware command facilities with minimal in-kernel console I/O drivers. Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 30b3cfe commit 667bc38

7 files changed

Lines changed: 0 additions & 38 deletions

File tree

‎arch/sparc/kernel/process.c‎

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -141,16 +141,12 @@ void cpu_idle(void)
141141

142142
extern char reboot_command [];
143143

144-
extern void (*prom_palette)(int);
145-
146144
/* XXX cli/sti -> local_irq_xxx here, check this works once SMP is fixed. */
147145
void machine_halt(void)
148146
{
149147
local_irq_enable();
150148
mdelay(8);
151149
local_irq_disable();
152-
if (prom_palette)
153-
prom_palette (1);
154150
prom_halt();
155151
panic("Halt failed!");
156152
}
@@ -165,8 +161,6 @@ void machine_restart(char * cmd)
165161

166162
p = strchr (reboot_command, '\n');
167163
if (p) *p = 0;
168-
if (prom_palette)
169-
prom_palette (1);
170164
if (cmd)
171165
prom_reboot(cmd);
172166
if (*reboot_command)

‎arch/sparc/kernel/setup.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,6 @@ struct screen_info screen_info = {
6565
*/
6666

6767
extern unsigned long trapbase;
68-
void (*prom_palette)(int);
6968

7069
/* Pretty sick eh? */
7170
void prom_sync_me(void)
@@ -80,8 +79,6 @@ void prom_sync_me(void)
8079
"nop\n\t"
8180
"nop\n\t" : : "r" (&trapbase));
8281

83-
if (prom_palette)
84-
prom_palette(1);
8582
prom_printf("PROM SYNC COMMAND...\n");
8683
show_free_areas();
8784
if(current->pid != 0) {

‎arch/sparc/prom/misc.c‎

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,6 @@ prom_feval(char *fstring)
4545
spin_unlock_irqrestore(&prom_lock, flags);
4646
}
4747

48-
/* We want to do this more nicely some day. */
49-
extern void (*prom_palette)(int);
50-
5148
/* Drop into the prom, with the chance to continue with the 'go'
5249
* prom command.
5350
*/
@@ -58,8 +55,6 @@ prom_cmdline(void)
5855
extern void install_linux_ticker(void);
5956
unsigned long flags;
6057

61-
if (prom_palette)
62-
prom_palette (1);
6358
spin_lock_irqsave(&prom_lock, flags);
6459
install_obp_ticker();
6560
(*(romvec->pv_abort))();
@@ -69,8 +64,6 @@ prom_cmdline(void)
6964
#ifdef CONFIG_SUN_AUXIO
7065
set_auxio(AUXIO_LED, 0);
7166
#endif
72-
if (prom_palette)
73-
prom_palette (0);
7467
}
7568

7669
/* Drop into the prom, but completely terminate the program.

‎arch/sparc64/kernel/process.c‎

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,22 +113,16 @@ void cpu_idle(void)
113113

114114
extern char reboot_command [];
115115

116-
extern void (*prom_palette)(int);
117-
118116
void machine_halt(void)
119117
{
120118
sstate_halt();
121-
if (prom_palette)
122-
prom_palette (1);
123119
prom_halt();
124120
panic("Halt failed!");
125121
}
126122

127123
void machine_alt_power_off(void)
128124
{
129125
sstate_poweroff();
130-
if (prom_palette)
131-
prom_palette(1);
132126
prom_halt_power_off();
133127
panic("Power-off failed!");
134128
}
@@ -140,8 +134,6 @@ void machine_restart(char * cmd)
140134
sstate_reboot();
141135
p = strchr (reboot_command, '\n');
142136
if (p) *p = 0;
143-
if (prom_palette)
144-
prom_palette (1);
145137
if (cmd)
146138
prom_reboot(cmd);
147139
if (*reboot_command)

‎arch/sparc64/kernel/setup.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ struct screen_info screen_info = {
6868
16 /* orig-video-points */
6969
};
7070

71-
void (*prom_palette)(int);
72-
7371
static void
7472
prom_console_write(struct console *con, const char *s, unsigned n)
7573
{

‎arch/sparc64/kernel/sparc64_ksyms.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,6 @@ extern int (*handle_mathemu)(struct pt_regs *, struct fpustate *);
8585
extern long sparc32_open(const char __user * filename, int flags, int mode);
8686
extern int io_remap_pfn_range(struct vm_area_struct *vma, unsigned long from,
8787
unsigned long pfn, unsigned long size, pgprot_t prot);
88-
extern void (*prom_palette)(int);
8988

9089
extern int __ashrdi3(int, int);
9190

@@ -355,5 +354,3 @@ EXPORT_SYMBOL(xor_niagara_2);
355354
EXPORT_SYMBOL(xor_niagara_3);
356355
EXPORT_SYMBOL(xor_niagara_4);
357356
EXPORT_SYMBOL(xor_niagara_5);
358-
359-
EXPORT_SYMBOL(prom_palette);

‎arch/sparc64/prom/misc.c‎

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,6 @@ void prom_feval(const char *fstring)
5555
P1275_INOUT(1, 1), fstring);
5656
}
5757

58-
/* We want to do this more nicely some day. */
59-
extern void (*prom_palette)(int);
60-
6158
#ifdef CONFIG_SMP
6259
extern void smp_capture(void);
6360
extern void smp_release(void);
@@ -72,9 +69,6 @@ void prom_cmdline(void)
7269

7370
local_irq_save(flags);
7471

75-
if (prom_palette)
76-
prom_palette(1);
77-
7872
#ifdef CONFIG_SMP
7973
smp_capture();
8074
#endif
@@ -85,9 +79,6 @@ void prom_cmdline(void)
8579
smp_release();
8680
#endif
8781

88-
if (prom_palette)
89-
prom_palette(0);
90-
9182
local_irq_restore(flags);
9283
}
9384

0 commit comments

Comments
 (0)