Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
397964ab
Commit
397964ab
authored
Apr 07, 2004
by
Tom Rini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
PPC32: Change all #if FOO to #ifdef FOO
parent
200884c5
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
16 additions
and
16 deletions
+16
-16
arch/ppc/4xx_io/serial_sicc.c
arch/ppc/4xx_io/serial_sicc.c
+5
-5
arch/ppc/8260_io/uart.c
arch/ppc/8260_io/uart.c
+2
-2
arch/ppc/kernel/signal.c
arch/ppc/kernel/signal.c
+2
-2
arch/ppc/platforms/gemini_setup.c
arch/ppc/platforms/gemini_setup.c
+2
-2
include/asm-ppc/highmem.h
include/asm-ppc/highmem.h
+2
-2
include/asm-ppc/rwsem.h
include/asm-ppc/rwsem.h
+3
-3
No files found.
arch/ppc/4xx_io/serial_sicc.c
View file @
397964ab
...
...
@@ -763,7 +763,7 @@ static void siccuart_change_speed(struct SICC_info *info, struct termios *old_te
cflag
=
info
->
tty
->
termios
->
c_cflag
;
#if DEBUG
#if
def
DEBUG
printk
(
"siccuart_set_cflag(0x%x) called
\n
"
,
cflag
);
#endif
/* byte size and parity */
...
...
@@ -1027,7 +1027,7 @@ static void siccuart_flush_buffer(struct tty_struct *tty)
struct
SICC_info
*
info
=
tty
->
driver_data
;
unsigned
long
flags
;
#if DEBUG
#if
def
DEBUG
printk
(
"siccuart_flush_buffer(%d) called
\n
"
,
tty
->
index
);
#endif
save_flags
(
flags
);
cli
();
...
...
@@ -1433,7 +1433,7 @@ static void siccuart_close(struct tty_struct *tty, struct file *filp)
state
=
info
->
state
;
#if DEBUG
#if
def
DEBUG
//printk("siccuart_close() called\n");
#endif
...
...
@@ -1544,7 +1544,7 @@ static void siccuart_wait_until_sent(struct tty_struct *tty, int timeout)
timeout
=
2
*
info
->
timeout
;
expire
=
jiffies
+
timeout
;
#if DEBUG
#if
def
DEBUG
printk
(
"siccuart_wait_until_sent(%d), jiff=%lu, expire=%lu char_time=%lu...
\n
"
,
tty
->
index
,
jiffies
,
expire
,
char_time
);
...
...
@@ -1831,7 +1831,7 @@ static int siccuart_console_read(struct console *co, const char *s, u_int count)
unsigned
int
status
;
char
*
w
;
int
c
;
#if DEBUG
#if
def
DEBUG
printk
(
"siccuart_console_read() called
\n
"
);
#endif
...
...
arch/ppc/8260_io/uart.c
View file @
397964ab
...
...
@@ -155,7 +155,7 @@ static unsigned long break_pressed; /* break, really ... */
static
struct
serial_state
rs_table
[]
=
{
/* UART CLK PORT IRQ FLAGS NUM */
{
0
,
0
,
PROFF_SMC1
,
SIU_INT_SMC1
,
0
,
0
},
/* SMC1 ttyS0 */
#if USE_SMC2
#if
def
USE_SMC2
{
0
,
0
,
PROFF_SMC2
,
SIU_INT_SMC2
,
0
,
1
},
/* SMC2 ttyS1 */
#endif
#ifndef CONFIG_SCC1_ENET
...
...
@@ -2565,7 +2565,7 @@ static int __init rs_8xx_init(void)
io
->
iop_pdird
|=
0x00400000
;
io
->
iop_pdird
&=
~
0x00800000
;
io
->
iop_psord
&=
~
0x00c00000
;
#if USE_SMC2
#if
def
USE_SMC2
io
->
iop_ppara
|=
0x00c00000
;
io
->
iop_pdira
|=
0x00400000
;
io
->
iop_pdira
&=
~
0x00800000
;
...
...
arch/ppc/kernel/signal.c
View file @
397964ab
...
...
@@ -361,7 +361,7 @@ handle_rt_signal(unsigned long sig, struct k_sigaction *ka,
return
;
badframe:
#if DEBUG_SIG
#if
def
DEBUG_SIG
printk
(
"badframe in handle_rt_signal, regs=%p frame=%p newsp=%lx
\n
"
,
regs
,
frame
,
newsp
);
#endif
...
...
@@ -513,7 +513,7 @@ handle_signal(unsigned long sig, struct k_sigaction *ka,
return
;
badframe:
#if DEBUG_SIG
#if
def
DEBUG_SIG
printk
(
"badframe in handle_signal, regs=%p frame=%lx newsp=%lx
\n
"
,
regs
,
frame
,
*
newspp
);
#endif
...
...
arch/ppc/platforms/gemini_setup.c
View file @
397964ab
...
...
@@ -401,12 +401,12 @@ gemini_set_rtc_time( unsigned long now )
to_tm
(
now
,
&
tm
);
reg
=
gemini_rtc_read
(
M48T35_RTC_CONTROL
);
#if DEBUG_RTC
#if
def
DEBUG_RTC
printk
(
"set rtc: reg = %x
\n
"
,
reg
);
#endif
gemini_rtc_write
((
reg
|
M48T35_RTC_SET
),
M48T35_RTC_CONTROL
);
#if DEBUG_RTC
#if
def
DEBUG_RTC
printk
(
"set rtc: tm vals - sec=%x, min=%x, hour=%x, mon=%x, mday=%x, year=%x
\n
"
,
tm
.
tm_sec
,
tm
.
tm_min
,
tm
.
tm_hour
,
tm
.
tm_mon
,
tm
.
tm_mday
,
tm
.
tm_year
);
#endif
...
...
include/asm-ppc/highmem.h
View file @
397964ab
...
...
@@ -87,7 +87,7 @@ static inline void *kmap_atomic(struct page *page, enum km_type type)
idx
=
type
+
KM_TYPE_NR
*
smp_processor_id
();
vaddr
=
KMAP_FIX_BEGIN
+
idx
*
PAGE_SIZE
;
#if HIGHMEM_DEBUG
#if
def
HIGHMEM_DEBUG
BUG_ON
(
!
pte_none
(
*
(
kmap_pte
+
idx
)));
#endif
set_pte
(
kmap_pte
+
idx
,
mk_pte
(
page
,
kmap_prot
));
...
...
@@ -98,7 +98,7 @@ static inline void *kmap_atomic(struct page *page, enum km_type type)
static
inline
void
kunmap_atomic
(
void
*
kvaddr
,
enum
km_type
type
)
{
#if HIGHMEM_DEBUG
#if
def
HIGHMEM_DEBUG
unsigned
long
vaddr
=
(
unsigned
long
)
kvaddr
&
PAGE_MASK
;
unsigned
int
idx
=
type
+
KM_TYPE_NR
*
smp_processor_id
();
...
...
include/asm-ppc/rwsem.h
View file @
397964ab
...
...
@@ -27,7 +27,7 @@ struct rw_semaphore {
#define RWSEM_ACTIVE_WRITE_BIAS (RWSEM_WAITING_BIAS + RWSEM_ACTIVE_BIAS)
spinlock_t
wait_lock
;
struct
list_head
wait_list
;
#if RWSEM_DEBUG
#if
def
RWSEM_DEBUG
int
debug
;
#endif
};
...
...
@@ -35,7 +35,7 @@ struct rw_semaphore {
/*
* initialisation
*/
#if RWSEM_DEBUG
#if
def
RWSEM_DEBUG
#define __RWSEM_DEBUG_INIT , 0
#else
#define __RWSEM_DEBUG_INIT
/* */
...
...
@@ -59,7 +59,7 @@ static inline void init_rwsem(struct rw_semaphore *sem)
sem
->
count
=
RWSEM_UNLOCKED_VALUE
;
spin_lock_init
(
&
sem
->
wait_lock
);
INIT_LIST_HEAD
(
&
sem
->
wait_list
);
#if RWSEM_DEBUG
#if
def
RWSEM_DEBUG
sem
->
debug
=
0
;
#endif
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment